Remove unnecessary multi-method

This commit is contained in:
oakes
2014-03-15 20:59:19 -04:00
parent 07c296fee6
commit 6565f9b31c
4 changed files with 23 additions and 46 deletions

View File

@@ -7,7 +7,8 @@
IntAttribute TextureAttribute]
[com.badlogic.gdx.graphics.g3d.model.data ModelData]
[com.badlogic.gdx.graphics.g3d.utils AnimationController
ModelBuilder]))
ModelBuilder]
[play_clj.utils ModelEntity]))
; animation-controller
@@ -77,7 +78,7 @@
(defmacro model
"Returns an entity based on [ModelInstance](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/graphics/g3d/ModelInstance.html)"
[& args]
`(u/create-entity
`(ModelEntity.
(let [arg1# ~(first args)]
(cond
(:object arg1#)