if (holder == null && parent == null)
return null;
- if (ElementUtils.isHidden(e))
- return null;
-
-
// Update the node scene graph through SceneGraph handlers.
List<SceneGraph> nodeHandlers = e.getElementClass().getItemsByClass(SceneGraph.class);
Collection<SceneGraph> decorators = e.getHint(ElementHints.KEY_DECORATORS);
if (nodeHandlers.isEmpty() && (decorators == null || decorators.isEmpty()))
return null;
+ if (ElementUtils.isHidden(e)) {
+ if(holder != null)
+ holder.removeNode("decorators");
+ for (SceneGraph n : nodeHandlers) {
+ n.cleanup(e);
+ }
+ return null;
+ }
+
Composite composite = e.getHint(ElementHints.KEY_COMPOSITE);
if (holder == null) {