Fixes for cases where there's no texture, DisplaySystem.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4066 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Andrzej Kapolka
2006-04-26 22:38:46 +00:00
parent e1c9d4bc53
commit e20ec412f1
3 changed files with 9 additions and 5 deletions
@@ -116,10 +116,6 @@ public class ModelMesh extends TriMesh
_textureByteBuffer = textures;
_indexByteBuffer = indices;
// initialize the model if we're displaying
if (DisplaySystem.getDisplaySystem() == null) {
return;
}
if (_boundingType == BOX_BOUND) {
setModelBound(new BoundingBox());
} else { // _boundingType == SPHERE_BOUND
@@ -127,6 +123,10 @@ public class ModelMesh extends TriMesh
}
updateModelBound();
// initialize the model if we're displaying
if (DisplaySystem.getDisplaySystem() == null) {
return;
}
if (_backCull == null) {
initSharedStates();
}