浏览代码

Fix OccluderPolyShape handles disappear after release click

Haoyu Qiu 2 年之前
父节点
当前提交
dd3bda9156
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      editor/plugins/spatial_editor_plugin.cpp

+ 1 - 1
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.