Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disconnected nodes are still rendered #478

Open
2 of 9 tasks
xeolabs opened this issue Apr 19, 2016 · 0 comments
Open
2 of 9 tasks

Disconnected nodes are still rendered #478

xeolabs opened this issue Apr 19, 2016 · 0 comments

Comments

@xeolabs
Copy link
Owner

xeolabs commented Apr 19, 2016

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant