From dd3bda91567cdde3335d9bdbab7b9942eb46a89c Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Thu, 27 Jul 2023 16:56:00 +0800 Subject: [PATCH] Fix OccluderPolyShape handles disappear after release click --- editor/plugins/spatial_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp index 54e818c5ce3..4daef976e82 100644 --- a/editor/plugins/spatial_editor_plugin.cpp +++ b/editor/plugins/spatial_editor_plugin.cpp @@ -7270,7 +7270,7 @@ void SpatialEditorPlugin::edit(Object *p_object) { } bool SpatialEditorPlugin::handles(Object *p_object) const { - if (p_object->is_class("Spatial")) { + if (p_object->is_class("Spatial") || p_object->is_class("Resource")) { return true; } else { // This ensures that gizmos are cleared when selecting a non-Spatial node.