Fix T55350: Cycles: instanced hair with hidden emitter is invisible when rendering

This commit is contained in:
Dalai Felinto 2018-06-06 15:18:45 +02:00
parent 36000e6da3
commit 9a0506ea18
Notes: blender-bot 2023-02-14 06:21:59 +01:00
Referenced by issue #55350, Cycles: instanced hair with hidden emitter is invisible when rendering
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}