Skip to content

Disconnected nodes are still rendered #478

@xeolabs

Description

@xeolabs
Description of the problem

When a scene node is disconnected from its parent, ie

foo.disconnect();

The scene graph recompiles, including foo, but the state within foo and its subnodes is still within the display list.
...

A possible solution would be to hold disconnected nodes in a special list, then on the scene recompile iterate that and destroy their display list elements. When a node is disconnected then reconnected elsewhere before the next compile, then it won't be in the list at the next recompile and won't have its display list elements destroyed.

SceneJS version
  • [X ] Dev
  • [ X] Master
  • [ X] ...
Browser
  • All of them
  • Chrome
  • Firefox
  • Internet Explorer
OS
  • All of them
  • Windows
  • Linux
  • Android
  • IOS
Hardware Requirements

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions