Blender Git Commit Log

Git Commits -> Revision 97002c2

Revision 97002c2 by Joshua Leung (master)
January 31, 2011, 11:19 (GMT)
Bugfix [#25876] bpy.ops.constraint.childof_set_inverse has no effect

This was a two-part bug: a user error + API error.
* User Error: before calling bpy.ops.constraint.childof_set_inverse()
for a constraint defined on a bone, you firstly need to explicitly
make that bone the active bone. To do that, you do
armature.bones.active = posebone.bone # or something similar

* API Error: active bone setting was a bit too strict. It only allows
setting the active bone if the new bone comes from the same armature,
but was overlooking the fact that RNA pointers may have been created
through the object using the armature instead.

Commit Details:

Full Hash: 97002c2d90bb067d9e5b7cd592619bf388950a48
SVN Revision: 34578
Parent Commit: 48fc6f5
Lines Changed: +23, -7

2 Modified Paths:

/source/blender/editors/object/object_constraint.c (+14, -2) (Diff)
/source/blender/makesrna/intern/rna_armature.c (+9, -5) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021