fix for adding drivers to constraints via python.
authorCampbell Barton <ideasman42@gmail.com>
Thu, 26 Nov 2009 09:48:53 +0000 (09:48 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 26 Nov 2009 09:48:53 +0000 (09:48 +0000)
commit9712e3a670659874ef303f45f03b7df6e1d8d649
tree83ceb0d5c6e6603b67cb13b5a550b53193b9ecde
parent8d9fba656869795d9d0135d2bc3b279e9176f9a1
fix for adding drivers to constraints via python.
the RNA constraint api was checking the current context when getting the constraint driver path and renaming constraints.
this made scripts not work properly so changed this to search for the constraint pose channel user within the object (if the object its self is not the user).
source/blender/editors/include/ED_object.h
source/blender/editors/object/object_constraint.c
source/blender/makesrna/intern/rna_constraint.c