summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-04-13 12:23:01 +0200
committerGitHub <noreply@github.com>2022-04-13 12:23:01 +0200
commite44aa166f0ce30c1ec62263d6c058711144a8c65 (patch)
tree73d09860008c2dcb57b44a720ef08b1f27eec01d /scene
parent0a158d77230711bd98073338787067999cb0b589 (diff)
parentf8cc2e054db5a34ad828da494484a53013b94767 (diff)
Merge pull request #60194 from V-Sekai/node_3d_gizmo_fix
Diffstat (limited to 'scene')
-rw-r--r--scene/3d/node_3d.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/scene/3d/node_3d.cpp b/scene/3d/node_3d.cpp
index 62cc7c143b..bbc977647e 100644
--- a/scene/3d/node_3d.cpp
+++ b/scene/3d/node_3d.cpp
@@ -181,15 +181,6 @@ void Node3D::_notification(int p_what) {
#ifdef TOOLS_ENABLED
if (Engine::get_singleton()->is_editor_hint() && get_tree()->is_node_being_edited(this)) {
get_tree()->call_group_flags(0, SceneStringNames::get_singleton()->_spatial_editor_group, SceneStringNames::get_singleton()->_request_gizmo, this);
- if (!data.gizmos_disabled) {
- for (int i = 0; i < data.gizmos.size(); i++) {
- data.gizmos.write[i]->create();
- if (is_visible_in_tree()) {
- data.gizmos.write[i]->redraw();
- }
- data.gizmos.write[i]->transform();
- }
- }
}
#endif
} break;
@@ -427,6 +418,7 @@ void Node3D::update_gizmos() {
}
if (data.gizmos.is_empty()) {
+ get_tree()->call_group_flags(0, SceneStringNames::get_singleton()->_spatial_editor_group, SceneStringNames::get_singleton()->_request_gizmo, this);
return;
}
if (data.gizmos_dirty) {