where_is_object function / particles and armatures

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

Post Reply
Posts: 0
Joined: Mon Oct 20, 2003 7:14 am

where_is_object function / particles and armatures

Post by leon »

hi all,

while working on the particle deflection stuff, one of the things I came across was that the "where_is_object" function (from object.c) doesn't seem to report the location correctly in ob->obmat if an emitter is parented to an armature (at least, if I call the function from effect.c).

I assume this is the reason you can't parent emitters to armatures.

Can any guru coders tell me if there are any "special requirements" for using the where_is_object function? i.e. any variables I should be setting etc....



Posts: 185
Joined: Wed Oct 16, 2002 12:06 am

Post by Hos »

Maybe try this on the armature parent before doing the where_is_object():

make_displists_by_armature (ObArm);


Post Reply