Depsgraph: Re-hook duplicgroup relation to final transform operation
Transform evaluation doesn't not depend on objects which are being duplicated, so should not be any regressions here. The whole relation should probably be gone as it's kind of rooting back to legacy times, but that would need more clear research and investigation and regression testing.
This commit is contained in:
parent
ad42c358f8
commit
a0f1bd8ed1
|
@ -464,9 +464,9 @@ void DepsgraphRelationBuilder::build_collection(
|
|||
}
|
||||
}
|
||||
const bool group_done = built_map_.checkIsBuiltAndTag(collection);
|
||||
OperationKey object_local_transform_key(object != NULL ? &object->id : NULL,
|
||||
OperationKey object_transform_final_key(object != NULL ? &object->id : NULL,
|
||||
DEG_NODE_TYPE_TRANSFORM,
|
||||
DEG_OPCODE_TRANSFORM_LOCAL);
|
||||
DEG_OPCODE_TRANSFORM_FINAL);
|
||||
if (!group_done) {
|
||||
LISTBASE_FOREACH (CollectionObject *, cob, &collection->gobject) {
|
||||
if (allow_restrict_flags) {
|
||||
|
@ -487,7 +487,7 @@ void DepsgraphRelationBuilder::build_collection(
|
|||
FOREACH_COLLECTION_VISIBLE_OBJECT_RECURSIVE_BEGIN(collection, ob, graph_->mode)
|
||||
{
|
||||
ComponentKey dupli_transform_key(&ob->id, DEG_NODE_TYPE_TRANSFORM);
|
||||
add_relation(dupli_transform_key, object_local_transform_key, "Dupligroup");
|
||||
add_relation(dupli_transform_key, object_transform_final_key, "Dupligroup");
|
||||
}
|
||||
FOREACH_COLLECTION_VISIBLE_OBJECT_RECURSIVE_END;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue