From 9a0506ea185c0ca6505e85ea0f5f5dc5fc48aa62 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Wed, 6 Jun 2018 15:18:45 +0200 Subject: [PATCH] Fix T55350: Cycles: instanced hair with hidden emitter is invisible when rendering --- source/blender/depsgraph/intern/depsgraph_query_iter.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/depsgraph/intern/depsgraph_query_iter.cc b/source/blender/depsgraph/intern/depsgraph_query_iter.cc index 4f3769b6768..f9bc0da7d28 100644 --- a/source/blender/depsgraph/intern/depsgraph_query_iter.cc +++ b/source/blender/depsgraph/intern/depsgraph_query_iter.cc @@ -120,7 +120,7 @@ static bool deg_objects_dupli_iterator_next(BLI_Iterator *iter) /* Duplicated elements shouldn't care whether their original collection is visible or not. */ temp_dupli_object->base_flag |= BASE_VISIBLED; - if (BKE_object_is_visible(temp_dupli_object, (eObjectVisibilityCheck)data->visibility_check) == false) { + if (BKE_object_is_visible(temp_dupli_object, OB_VISIBILITY_CHECK_UNKNOWN_RENDER_MODE) == false) { continue; }