瀏覽代碼

tools: fix wrong resource type

Daniele Bartolini 7 月之前
父節點
當前提交
cbbee21875
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 0
      docs/changelog.rst
  2. 1 1
      tools/resource/types.vala

+ 1 - 0
docs/changelog.rst

@@ -7,6 +7,7 @@ Changelog
 **Fixes**
 
 * Tools: fixed missing sounds in the Level Tree.
+* Tools: fixed inability to select state machines from the "Animation State Machine" component in the Inspector.
 
 0.57.0 --- 13 Jun 2025
 ----------------------

+ 1 - 1
tools/resource/types.vala

@@ -476,7 +476,7 @@ public static void create_object_types(Database database)
 			name = "data.state_machine_resource",
 			label = "State Machine",
 			editor = PropertyEditorType.RESOURCE,
-			resource_type = OBJECT_TYPE_ANIMATION_STATE_MACHINE
+			resource_type = OBJECT_TYPE_STATE_MACHINE
 		},
 	};
 	database.create_object_type(OBJECT_TYPE_ANIMATION_STATE_MACHINE, properties);