where_is_object function / particles and armatures

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

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

where_is_object function / particles and armatures

Post by leon » Sat Mar 13, 2004 11:58 am

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....

Cheers

Leon

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

Post by Hos » Sat Mar 13, 2004 6:14 pm

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

clear_pose_constraint_status(ObArm);
make_displists_by_armature (ObArm);

Chris

Post Reply