Depsgraph: Add some missing relations
Those cases requires not only geometry component, but also a transform one to be ready before evaluation can start.
This commit is contained in:
parent
35531657e5
commit
b4b269f38e
@ -124,6 +124,7 @@ static void updateDepsgraph(ModifierData *md,
|
||||
ArmatureModifierData *amd = (ArmatureModifierData *)md;
|
||||
if (amd->object != NULL) {
|
||||
DEG_add_object_relation(node, amd->object, DEG_OB_COMP_EVAL_POSE, "Armature Modifier");
|
||||
DEG_add_object_relation(node, amd->object, DEG_OB_COMP_TRANSFORM, "Armature Modifier");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -139,20 +139,21 @@ static void updateDepgraph(ModifierData *md, DagForest *forest,
|
||||
static void updateDepsgraph(ModifierData *md,
|
||||
struct Main *UNUSED(bmain),
|
||||
struct Scene *UNUSED(scene),
|
||||
Object *UNUSED(ob),
|
||||
Object *ob,
|
||||
struct DepsNodeHandle *node)
|
||||
{
|
||||
HookModifierData *hmd = (HookModifierData *)md;
|
||||
if (hmd->object != NULL) {
|
||||
if (hmd->subtarget[0]) {
|
||||
/* TODO(sergey): Hpw do we add relation to bone here? */
|
||||
//DEG_add_object_relation(node, hmd->object, DEG_OB_COMP_EVAL_POSE, "Hook Modifier");
|
||||
DEG_add_bone_relation(node, hmd->object, hmd->subtarget, DEG_OB_COMP_TRANSFORM, "Hook Modifier");
|
||||
DEG_add_bone_relation(node, hmd->object, hmd->subtarget, DEG_OB_COMP_BONE, "Hook Modifier");
|
||||
}
|
||||
else {
|
||||
DEG_add_object_relation(node, hmd->object, DEG_OB_COMP_TRANSFORM, "Hook Modifier");
|
||||
}
|
||||
}
|
||||
/* We need own transformation as well. */
|
||||
DEG_add_object_relation(node, ob, DEG_OB_COMP_TRANSFORM, "Hook Modifier");
|
||||
}
|
||||
|
||||
struct HookData_cb {
|
||||
|
Loading…
Reference in New Issue
Block a user