ObColor wasnt converted into an RNA string.
authorCampbell Barton <ideasman42@gmail.com>
Sat, 20 Jun 2009 02:44:57 +0000 (02:44 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 20 Jun 2009 02:44:57 +0000 (02:44 +0000)
commit7785ead4eb64f9702d7a59060e73b3e121e674a7
tree0ea55feb030d8eff70bfe9758f3c4aafe1e7daf8
parentd0e8acaf2902235afd0b3fbd2e408c1cf04689be
ObColor wasnt converted into an RNA string.

Updated Mathutils.Vector/Euler/Quaternion/Matrix so these are types rather then module methods, each type now has a tp_new function, matching python builtins float/int/str.
Also cleaned up float conversion and arg passing.

Changed buttons_objects.py...
 if ob in groups.objects: # no longer works
 if ob.name in groups.objects: # is the new syntax
...its more dict like and a lot faster (avoids python iterating over each item and comparing each, use a single rna lookup instead).
13 files changed:
release/ui/buttons_objects.py
source/blender/blenkernel/intern/ipo.c
source/blender/python/generic/Mathutils.c
source/blender/python/generic/Mathutils.h
source/blender/python/generic/euler.c
source/blender/python/generic/euler.h
source/blender/python/generic/matrix.c
source/blender/python/generic/matrix.h
source/blender/python/generic/quat.c
source/blender/python/generic/quat.h
source/blender/python/generic/vector.c
source/blender/python/generic/vector.h
source/blender/python/intern/bpy_rna.c