Permalink
Browse files

Revert "When a model is made visible/invisible, remove/add the impl."

This reverts commit b8b08a5.
  • Loading branch information...
1 parent 942bfab commit 3c2c6a9b13a0604461aaa48bf4be26bc7a92b63e @raygreenwell raygreenwell committed Apr 26, 2012
Showing with 3 additions and 16 deletions.
  1. +3 −16 src/main/java/com/threerings/opengl/model/Model.java
@@ -510,16 +510,7 @@ public String getRenderScheme ()
*/
public void setVisible (boolean visible)
{
- if (visible != _visible) {
- _visible = visible;
- if (_scene != null) {
- if (visible) {
- _impl.wasAdded();
- } else {
- _impl.willBeRemoved();
- }
- }
- }
+ _visible = visible;
}
/**
@@ -870,17 +861,13 @@ public Box getBounds ()
public void wasAdded (Scene scene)
{
_scene = scene;
- if (_visible) {
- _impl.wasAdded();
- }
+ _impl.wasAdded();
}
// documentation inherited from interface SceneElement
public void willBeRemoved ()
{
- if (_visible) {
- _impl.willBeRemoved();
- }
+ _impl.willBeRemoved();
_scene = null;
}

0 comments on commit 3c2c6a9

Please sign in to comment.