From 4af218f9e326ce5042f79840cd48c36e96a52d79 Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Thu, 28 Nov 2019 05:34:23 -0500 Subject: 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. --- editor/plugins/spatial_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor/plugins') 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(item))) continue; + if (_is_node_locked(item)) continue; Ref seg = sp->get_gizmo(); -- cgit v1.2.3