Depsgraph: Walk into dupli_group object

That will help with cases when dupli_group object is not linked
directly to the scene.
This commit is contained in:
2018-06-21 15:41:51 +02:00
parent b80cce2053
commit ad42c358f8
2 changed files with 6 additions and 1 deletions

View File

@@ -541,6 +541,9 @@ void DepsgraphNodeBuilder::build_object(int base_index,
if (object->proxy_from) {
build_object(-1, object->proxy_from, DEG_ID_LINKED_INDIRECTLY);
}
if (object->proxy_group) {
build_object(-1, object->proxy_group, DEG_ID_LINKED_INDIRECTLY);
}
/* Object dupligroup. */
if (object->dup_group != NULL) {
build_collection(DEG_COLLECTION_OWNER_OBJECT, object->dup_group);