diff options
| author | Aaron Franke <arnfranke@yahoo.com> | 2019-11-28 05:34:23 -0500 |
|---|---|---|
| committer | Aaron Franke <arnfranke@yahoo.com> | 2019-11-28 05:34:54 -0500 |
| commit | 4af218f9e326ce5042f79840cd48c36e96a52d79 (patch) | |
| tree | 814e9c3bccc6abf83d44f9333aed69af20903dfe /editor/plugins/spatial_editor_plugin.cpp | |
| parent | 0e6e64c9e9e33dee5089b3e17d9323ad25105b1d (diff) | |
| download | redot-engine-4af218f9e326ce5042f79840cd48c36e96a52d79.tar.gz | |
Don't cast item to Spatial when checking if it's locked
Not a necessary cast, and causes a crash any time it's not a Spatial.
Diffstat (limited to 'editor/plugins/spatial_editor_plugin.cpp')
| -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(); |
