Fix #128797: Custom property Data-Block Type only has Object ID Type

In the WindowManager code, use `bpy.types.ID.id_type` enum property to
get all valid ID types, instead of using a property on the `Action`
type.

Pull Request: https://projects.blender.org/blender/blender/pulls/128834
This commit is contained in:
Sybren A. Stüvel
2024-10-10 11:26:53 +02:00
parent b0fb6a1b2c
commit a564e678f0

View File

@@ -1410,7 +1410,7 @@ rna_custom_property_subtype_vector_items = (
)
rna_id_type_items = tuple((item.identifier, item.name, item.description, item.icon, item.value)
for item in bpy.types.Action.bl_rna.properties["id_root"].enum_items)
for item in bpy.types.ID.bl_rna.properties["id_type"].enum_items)
class WM_OT_properties_edit(Operator):