[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [36047] trunk/blender/source/blender/ python/intern/bpy_rna.c: change to fcurve keyframe coords broke simplify addon since the property

Campbell Barton ideasman42 at gmail.com
Fri Apr 8 03:40:58 CEST 2011


Revision: 36047
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=36047
Author:   campbellbarton
Date:     2011-04-08 01:40:54 +0000 (Fri, 08 Apr 2011)
Log Message:
-----------
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.

Modified Paths:
--------------
    trunk/blender/source/blender/python/intern/bpy_rna.c

Modified: trunk/blender/source/blender/python/intern/bpy_rna.c
===================================================================
--- trunk/blender/source/blender/python/intern/bpy_rna.c	2011-04-07 19:30:37 UTC (rev 36046)
+++ trunk/blender/source/blender/python/intern/bpy_rna.c	2011-04-08 01:40:54 UTC (rev 36047)
@@ -547,7 +547,9 @@
 
 #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)
 {




More information about the Bf-blender-cvs mailing list