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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user