From a564e678f06d5f3e72811446568ab32930b72216 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Thu, 10 Oct 2024 11:26:53 +0200 Subject: [PATCH] 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 --- scripts/startup/bl_operators/wm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/startup/bl_operators/wm.py b/scripts/startup/bl_operators/wm.py index a0169d91c73..14a8f615597 100644 --- a/scripts/startup/bl_operators/wm.py +++ b/scripts/startup/bl_operators/wm.py @@ -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):