forked from bartvdbraak/blender
Bugfix #4483
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:
parent
3ffdc5a83b
commit
1aab013bcc
@ -752,13 +752,13 @@ static float eval_driver(IpoDriver *driver, float ipotime)
|
|||||||
|
|
||||||
if(ob==NULL) return 0.0f;
|
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) {
|
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) {
|
switch(driver->adrcode) {
|
||||||
case OB_LOC_X:
|
case OB_LOC_X:
|
||||||
return ob->loc[0];
|
return ob->loc[0];
|
||||||
|
Loading…
Reference in New Issue
Block a user