Merge pull request #33964 from aaronfranke/canvas-in-spatial-crash

Don't cast item to Spatial when checking if it's locked
This commit is contained in:
Rémi Verschelde 2019-11-28 12:05:07 +01:00 committed by GitHub
commit 7735af7e76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();