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:
@@ -34,8 +34,8 @@ import bpy
|
||||
|
||||
# Full autocomplete and type checking
|
||||
obj = bpy.context.active_object
|
||||
if obj is not None:
|
||||
print(obj.name)
|
||||
assert obj is not None
|
||||
obj.location.x = 1.0
|
||||
|
||||
# Collection types with proper methods
|
||||
bpy.data.objects.new("Cube", bpy.data.meshes.new("Mesh"))
|
||||
|
||||
Reference in New Issue
Block a user