Update the render state of the imported JME file after loading it.

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@10 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Andrzej Kapolka
2006-07-01 02:12:51 +00:00
parent 7baf533076
commit 4203ac53f6
@@ -844,6 +844,7 @@ public class ModelViewer extends JmeCanvasApp
super.setVisible(visible);
if (visible && _spatial.getParent() == null) {
_ctx.getGeometry().attachChild(_spatial);
_spatial.updateRenderState();
} else if (!visible && _spatial.getParent() != null) {
_ctx.getGeometry().detachChild(_spatial);
}