diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-09-24 11:53:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-24 11:53:43 +0200 |
commit | 2f52d73c21fb9e532dd8b71e9b18f31cd7996277 (patch) | |
tree | 8dd109f8a1fc371b92f90a3a011f898d19a34f93 /editor/plugins | |
parent | 823c3def725bcb741dce004e2dca520558fdd092 (diff) | |
parent | b397bcf4a1d8ef0f72cffd248309592d9c66b041 (diff) |
Merge pull request #31925 from bojidar-bg/31855-overriden-properties-docs
Add overriden properties to the documentation
Diffstat (limited to 'editor/plugins')
-rw-r--r-- | editor/plugins/spatial_editor_plugin.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp index 18049e62b4..43d37a8edc 100644 --- a/editor/plugins/spatial_editor_plugin.cpp +++ b/editor/plugins/spatial_editor_plugin.cpp @@ -4061,7 +4061,10 @@ void _update_all_gizmos(Node *p_node) { } void SpatialEditor::update_all_gizmos(Node *p_node) { - if (!p_node) p_node = SceneTree::get_singleton()->get_root(); + if (!p_node) { + if (!SceneTree::get_singleton()) return; + p_node = SceneTree::get_singleton()->get_root(); + } _update_all_gizmos(p_node); } |