Despgraph: Make dupli objects inherit the parent's display type
authorClément Foucault <foucault.clem@gmail.com>
Mon, 11 Mar 2019 13:01:14 +0000 (14:01 +0100)
committerClément Foucault <foucault.clem@gmail.com>
Mon, 11 Mar 2019 13:03:31 +0000 (14:03 +0100)
Fix T61152 Instanced Collections Don't Honor Viewport Display Setting

source/blender/depsgraph/intern/depsgraph_query_iter.cc

index 4aaeaf4..fdb9ab3 100644 (file)
@@ -148,6 +148,7 @@ bool deg_objects_dupli_iterator_next(BLI_Iterator *iter)
                temp_dupli_object->select_id = dupli_parent->select_id;
                temp_dupli_object->base_flag = dupli_parent->base_flag | BASE_FROM_DUPLI;
                temp_dupli_object->base_local_view_bits = dupli_parent->base_local_view_bits;
+               temp_dupli_object->dt = dupli_parent->dt;
 
                /* Duplicated elements shouldn't care whether their original collection is visible or not. */
                temp_dupli_object->base_flag |= BASE_VISIBLE;