Depsgraph: Fix shape key nodes trying to be added multiple times
This commit is contained in:
parent
96dd4cdb9e
commit
0f457a3f8d
|
@ -985,11 +985,6 @@ void DepsgraphNodeBuilder::build_obdata_geom(Scene *scene, Object *ob)
|
|||
|
||||
// TODO: "Done" operation
|
||||
|
||||
/* ShapeKeys */
|
||||
Key *key = BKE_key_from_object(ob);
|
||||
if (key)
|
||||
build_shapekeys(key);
|
||||
|
||||
/* Modifiers */
|
||||
if (ob->modifiers.first) {
|
||||
ModifierData *md;
|
||||
|
@ -1025,6 +1020,12 @@ void DepsgraphNodeBuilder::build_obdata_geom(Scene *scene, Object *ob)
|
|||
return;
|
||||
}
|
||||
|
||||
/* ShapeKeys */
|
||||
Key *key = BKE_key_from_object(ob);
|
||||
if (key) {
|
||||
build_shapekeys(key);
|
||||
}
|
||||
|
||||
build_animdata(obdata);
|
||||
|
||||
/* nodes for result of obdata's evaluation, and geometry evaluation on object */
|
||||
|
|
Loading…
Reference in New Issue