From 175b1bd7e57bba65401a4cbfb4402b21eb52a50f Mon Sep 17 00:00:00 2001 From: Joseph HENRY Date: Tue, 31 Mar 2026 17:38:32 +0200 Subject: [PATCH] Fix fixed-length RNA arrays to use bpy_prop_array instead of list Fixed-length RNA array properties (e.g. lock_location, color) are bpy_prop_array at runtime, not list. Only dynamic-length arrays were correctly typed before. Co-Authored-By: Claude Opus 4.6 (1M context) --- introspect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/introspect.py b/introspect.py index 6ae06bf..0ea2a17 100644 --- a/introspect.py +++ b/introspect.py @@ -2153,7 +2153,7 @@ def rna_property_to_type(prop: object) -> str: return "mathutils.Color" if prop_type == "float" and subtype == "MATRIX": return "mathutils.Matrix" - return f"list[{base}]" + return f"bpy_prop_array[{base}]" return RNA_TYPE_MAP.get(prop_type, prop_type)