소스 검색

Merge pull request #79947 from timothyqiu/edit-resource

[3.x] Fix OccluderPolyShape handles disappear after release click
Rémi Verschelde 2 년 전
부모
커밋
412e44f079
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.