diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-04-08 05:40:54 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-04-08 05:40:54 +0400 |
commit | 6b3f5ecd18e0b780607941708347ba48663f2a42 (patch) | |
tree | ac208aec440757e3a2f8d86e41b2aa9f6faddd85 /source | |
parent | ba44bf522cd098c8568a8dea4218b91b8d161191 (diff) |
change to fcurve keyframe coords broke simplify addon since the property
was no longer wrapped by python as a vector. now fixed size float arrays
with PROP_NONE subtype are wrapped as vectors since its convenient to
have x/y access.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/python/intern/bpy_rna.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c index add088d181a..612d8063424 100644 --- a/source/blender/python/intern/bpy_rna.c +++ b/source/blender/python/intern/bpy_rna.c @@ -547,7 +547,9 @@ static short pyrna_rotation_euler_order_get(PointerRNA *ptr, PropertyRNA **prop_ #endif // USE_MATHUTILS -#define PROP_ALL_VECTOR_SUBTYPES PROP_TRANSLATION: case PROP_DIRECTION: case PROP_VELOCITY: case PROP_ACCELERATION: case PROP_XYZ: case PROP_XYZ_LENGTH +/* note that PROP_NONE is included as a vector subtype. this is because its handy to + * have x/y access to fcurve keyframes and other fixed size float arrayas of length 2-4. */ +#define PROP_ALL_VECTOR_SUBTYPES PROP_NONE: case PROP_TRANSLATION: case PROP_DIRECTION: case PROP_VELOCITY: case PROP_ACCELERATION: case PROP_XYZ: case PROP_XYZ_LENGTH PyObject *pyrna_math_object_from_array(PointerRNA *ptr, PropertyRNA *prop) { |