You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
-Moved all the "root" input handling for GUI from individual Controls to Viewport.
-Should fix several reported bugs when controls don't have a common parent This may have added new bugs, so please report if so!
This commit is contained in:
@@ -39,12 +39,8 @@
|
||||
Node *SceneTreeEditor::get_scene_node() {
|
||||
|
||||
ERR_FAIL_COND_V(!is_inside_tree(),NULL);
|
||||
if (get_tree()->get_root()->get_child_count() && get_tree()->get_root()->get_child(0)->cast_to<EditorNode>())
|
||||
return get_tree()->get_root()->get_child(0)->cast_to<EditorNode>()->get_edited_scene();
|
||||
else
|
||||
return get_tree()->get_root();
|
||||
|
||||
return NULL;
|
||||
return get_tree()->get_edited_scene_root();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user