Type safety, redundant case removal, other cleanup.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@490 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -238,8 +238,7 @@ public class ModelMesh extends TriMesh
|
||||
((ModelController)controller).putClone(null, properties));
|
||||
}
|
||||
}
|
||||
TriangleBatch batch = (TriangleBatch)getBatch(0),
|
||||
mbatch = (TriangleBatch)mstore.getBatch(0);
|
||||
TriangleBatch batch = getBatch(0), mbatch = mstore.getBatch(0);
|
||||
mbatch.setVertexBuffer(properties.isSet("vertices") ?
|
||||
batch.getVertexBuffer() :
|
||||
BufferUtils.clone(batch.getVertexBuffer()));
|
||||
@@ -317,7 +316,7 @@ public class ModelMesh extends TriMesh
|
||||
"localRotation", null));
|
||||
setLocalScale((Vector3f)capsule.readSavable(
|
||||
"localScale", null));
|
||||
TriangleBatch batch = (TriangleBatch)getBatch(0);
|
||||
TriangleBatch batch = getBatch(0);
|
||||
batch.setModelBound((BoundingVolume)capsule.readSavable(
|
||||
"modelBound", null));
|
||||
_textureKey = capsule.readString("textureKey", null);
|
||||
|
||||
Reference in New Issue
Block a user