diff options
author | Juan Linietsky <juan@godotengine.org> | 2019-03-07 09:25:35 -0300 |
---|---|---|
committer | Juan Linietsky <juan@godotengine.org> | 2019-03-07 09:26:49 -0300 |
commit | 06dbeab5d4ba1ef9c58219260ced2b3fe2070553 (patch) | |
tree | 72f301281cd65522a9f44e62b9d7db28c2864cd2 /scene/3d | |
parent | 69761816381f11536980441265345ba055ad1c26 (diff) |
No longer crash due to wrongly requesting a gizmo, fixes #26735
Diffstat (limited to 'scene/3d')
-rw-r--r-- | scene/3d/spatial.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/3d/spatial.cpp b/scene/3d/spatial.cpp index d6544c39da..83f99a2e3c 100644 --- a/scene/3d/spatial.cpp +++ b/scene/3d/spatial.cpp @@ -178,7 +178,7 @@ void Spatial::_notification(int p_what) { get_script_instance()->call_multilevel(SceneStringNames::get_singleton()->_enter_world, NULL, 0); } #ifdef TOOLS_ENABLED - if (Engine::get_singleton()->is_editor_hint()) { + if (Engine::get_singleton()->is_editor_hint() && get_tree()->is_node_being_edited(this)) { //get_scene()->call_group(SceneMainLoop::GROUP_CALL_REALTIME,SceneStringNames::get_singleton()->_spatial_editor_group,SceneStringNames::get_singleton()->_request_gizmo,this); get_tree()->call_group_flags(0, SceneStringNames::get_singleton()->_spatial_editor_group, SceneStringNames::get_singleton()->_request_gizmo, this); |