Map RNA float array properties to mathutils types using subtype

RNA properties with subtypes like TRANSLATION, XYZ, EULER, QUATERNION,
COLOR, MATRIX are now mapped to the corresponding mathutils types
(Vector, Euler, Quaternion, Color, Matrix) instead of list[float].

Also:
- Add gpu.types override for 5.1 (uniform_float accepts mathutils types)
- Fix README snippet to use assert for active_object None check

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-31 17:32:24 +02:00
co-authored by Claude Opus 4.6
parent 9484e364c2
commit 35a370a412
4 changed files with 26 additions and 4 deletions
+7
View File
@@ -0,0 +1,7 @@
{
"GPUShader.uniform_float": {
"params": {
"value": "float | int | Sequence[float] | mathutils.Matrix | mathutils.Vector | mathutils.Euler | mathutils.Quaternion | mathutils.Color"
}
}
}