Fix for bugfix! The code added to solve Driver lag should not be called
when Bones in Armature are drivers (only when Objects are drivers).
This commit is contained in:
Ton Roosendaal 2006-06-26 11:29:33 +00:00
parent 3ffdc5a83b
commit 1aab013bcc

@ -752,13 +752,13 @@ static float eval_driver(IpoDriver *driver, float ipotime)
if(ob==NULL) return 0.0f;
/* depsgraph failure; ob ipos are calculated in where_is_object, this might get called too late */
if(ob->ipo && ob->ctime!=ipotime) {
calc_ipo_spec(ob->ipo, driver->adrcode, &ipotime);
return ipotime;
}
if(driver->blocktype==ID_OB) {
/* depsgraph failure; ob ipos are calculated in where_is_object, this might get called too late */
if(ob->ipo && ob->ctime!=ipotime) {
calc_ipo_spec(ob->ipo, driver->adrcode, &ipotime);
return ipotime;
}
switch(driver->adrcode) {
case OB_LOC_X:
return ob->loc[0];