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

Editor hangs - caused by EditorSelection #6244

Closed
Tracked by #6276
GlaDOSik opened this issue Aug 22, 2016 · 0 comments · Fixed by #6259
Closed
Tracked by #6276

Editor hangs - caused by EditorSelection #6244

GlaDOSik opened this issue Aug 22, 2016 · 0 comments · Fixed by #6259

Comments

@GlaDOSik
Copy link

Operating system or device - Godot version:
Godot 2.1 stable 64 bit, Windows 7

Issue description (what happened, and what was expected):
Editor hangs when you pass node to add_node (from EditorSelection) which isn't in the scene tree. It is a wrong way of using add_node but it shouldn't hang. There should be a check if selected node is inside the tree.

Steps to reproduce:

  1. Create an editor plugin
  2. Make a new node in script: var newMeshInstance = MeshInstance.new()
  3. Try to select this node: get_selection().add_node(newMeshInstance)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants