Переглянути джерело

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**
 **Fixes**
 
 
 * Tools: fixed missing sounds in the Level Tree.
 * 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
 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",
 			name = "data.state_machine_resource",
 			label = "State Machine",
 			label = "State Machine",
 			editor = PropertyEditorType.RESOURCE,
 			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);
 	database.create_object_type(OBJECT_TYPE_ANIMATION_STATE_MACHINE, properties);