[Bf-python] Erwin's rigidbody additions

Ken Hughes khughes at pacific.edu
Wed May 17 01:47:04 CEST 2006


Erwin Coumans wrote:
> erwin (Erwin Coumans) 2006/05/17 01:17:56 CEST
> 
>   Modified files:
>     blender/source/blender/python/api2_2x Object.c 
>   
>   Log:
>   Added first Rigid Body python access (mass). Basic others will follow. This helps Collada 1.4 Import/Export.

Took a glance at this and Erwin's added two new methods:

{"getRBMass", ( PyCFunction ) Object_getRBMass, METH_NOARGS,
   "Returns RB Mass"},
{"setRBMass", ( PyCFunction ) Object_setRBMass, METH_VARARGS,
   "Sets RB Mass"},

Should we ask him to change this to an attribute instead?  I realize 
Object.c didn't get the tp_getseter update yet (I can do it if we want 
it), but I think the goal is to move away from getStuff()/setStuff() 
where possible?  If so, better to not add incompatibility we'll have to 
break with the API refactoring.

Ken



More information about the Bf-python mailing list