mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
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:
commit
7735af7e76
@ -521,7 +521,7 @@ void SpatialEditorViewport::_select_region() {
|
|||||||
|
|
||||||
if (selected.find(item) != -1) continue;
|
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();
|
Ref<EditorSpatialGizmo> seg = sp->get_gizmo();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user