2
0
Fork 0

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.
3.2
Aaron Franke 2019-11-28 05:34:23 +07:00
parent 0e6e64c9e9
commit 4af218f9e3
No known key found for this signature in database
GPG Key ID: 40A1750B977E56BF
1 changed files with 1 additions and 1 deletions

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