diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-11-28 12:05:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-28 12:05:07 +0100 |
commit | 7735af7e768e16efb4b3b6de1c72c3dfb50c9412 (patch) | |
tree | 814e9c3bccc6abf83d44f9333aed69af20903dfe /editor/plugins | |
parent | 0e6e64c9e9e33dee5089b3e17d9323ad25105b1d (diff) | |
parent | 4af218f9e326ce5042f79840cd48c36e96a52d79 (diff) |
Merge pull request #33964 from aaronfranke/canvas-in-spatial-crash
Don't cast item to Spatial when checking if it's locked
Diffstat (limited to 'editor/plugins')
-rw-r--r-- | editor/plugins/spatial_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp index d187e4ff4a..10e4559805 100644 --- a/editor/plugins/spatial_editor_plugin.cpp +++ b/editor/plugins/spatial_editor_plugin.cpp @@ -521,7 +521,7 @@ void SpatialEditorViewport::_select_region() { if (selected.find(item) != -1) continue; - if (_is_node_locked(Object::cast_to<Spatial>(item))) continue; + if (_is_node_locked(item)) continue; Ref<EditorSpatialGizmo> seg = sp->get_gizmo(); |