diff options
| author | Rémi Verschelde <remi@verschelde.fr> | 2022-04-13 12:23:01 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-13 12:23:01 +0200 |
| commit | e44aa166f0ce30c1ec62263d6c058711144a8c65 (patch) | |
| tree | 73d09860008c2dcb57b44a720ef08b1f27eec01d /editor/plugins/node_3d_editor_plugin.cpp | |
| parent | 0a158d77230711bd98073338787067999cb0b589 (diff) | |
| parent | f8cc2e054db5a34ad828da494484a53013b94767 (diff) | |
Merge pull request #60194 from V-Sekai/node_3d_gizmo_fix
Diffstat (limited to 'editor/plugins/node_3d_editor_plugin.cpp')
| -rw-r--r-- | editor/plugins/node_3d_editor_plugin.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/plugins/node_3d_editor_plugin.cpp b/editor/plugins/node_3d_editor_plugin.cpp index 855fc2b2a9..f2ca1fcfeb 100644 --- a/editor/plugins/node_3d_editor_plugin.cpp +++ b/editor/plugins/node_3d_editor_plugin.cpp @@ -7120,7 +7120,9 @@ void Node3DEditor::_request_gizmo(Object *p_obj) { } } } - sp->update_gizmos(); + if (!sp->get_gizmos().is_empty()) { + sp->update_gizmos(); + } } } |