Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-03-12 15:21:54 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-03-12 15:40:31 +0300
commitca06b849002a95f392f4918a56559f413093422a (patch)
treedbe8d5bb5945a789e5122cd2ba940327304a5368 /source/blender/depsgraph/intern/depsgraph_query_iter.cc
parent84ac6b72c04e6602bbc7b94f8a11a293f98bb074 (diff)
Fix T62470: instanced object does not preserve bounds display type.
Inheriting the display type from the instancer should only happen if it's a simpler one.
Diffstat (limited to 'source/blender/depsgraph/intern/depsgraph_query_iter.cc')
-rw-r--r--source/blender/depsgraph/intern/depsgraph_query_iter.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph_query_iter.cc b/source/blender/depsgraph/intern/depsgraph_query_iter.cc
index 9ce2d0b0981..2dfffe92368 100644
--- a/source/blender/depsgraph/intern/depsgraph_query_iter.cc
+++ b/source/blender/depsgraph/intern/depsgraph_query_iter.cc
@@ -148,7 +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;
+ temp_dupli_object->dt = MIN2(temp_dupli_object->dt, dupli_parent->dt);
copy_v4_v4(temp_dupli_object->color, dupli_parent->color);
/* Duplicated elements shouldn't care whether their original collection is visible or not. */