[Bf-python] makeparent()
models at paposo.com
models at paposo.com
Tue Nov 11 06:28:10 CET 2003
Done.
The '2' usercount is also on the datablocks. It's because when you call
add_xxxblock() the usercount get's incremented by 1. However, with python it
should be set back to 0. The lamp module does this already.
/* let's return user count to zero, because ... */
bl_lamp->id.us = 0; /* ... add_lamp() incref'ed it */
But there are other modules in their xxx_NEW() functions don't.
Armature.c
Curve.c
Ipo.c
Metaball.c
Object.c
Scene.c
Text.c
World.c
all call alloclibblock() in the xxx_new methods which sets their usercounts
to 1.
Lamp, Camera, and Material all set usercounts to 0 after alloclibblock.
BTW Im almost done with lattice. All I have to do is add lattice key frame
access :)
More information about the Bf-python
mailing list