Depsgraph: detect bbone_segments drivers from Object animation data.
This commit is contained in:
parent
be967c0b3c
commit
02e3bf22ab
|
@ -114,7 +114,10 @@ bool DepsgraphBuilder::check_pchan_has_bbone(Object *object, const bPoseChannel
|
|||
}
|
||||
bArmature *armature = static_cast<bArmature *>(object->data);
|
||||
AnimatedPropertyID property_id(&armature->id, &RNA_Bone, pchan->bone, "bbone_segments");
|
||||
return cache_->isPropertyAnimated(&armature->id, property_id);
|
||||
/* Check both Object and Armature animation data, because drivers modifying Armature
|
||||
* state could easily be created in the Object AnimData. */
|
||||
return cache_->isPropertyAnimated(&object->id, property_id) ||
|
||||
cache_->isPropertyAnimated(&armature->id, property_id);
|
||||
}
|
||||
|
||||
bool DepsgraphBuilder::check_pchan_has_bbone_segments(Object *object, const bPoseChannel *pchan)
|
||||
|
|
Loading…
Reference in New Issue