Fix visibility of instancer object #43

Merged
Bogdan Nagirniak merged 16 commits from BLEN-405_1 into hydra-render 2023-05-24 13:44:35 +02:00
Showing only changes of commit c4d3435b9e - Show all commits

View File

@ -69,15 +69,16 @@ bool ObjectData::is_visible(BlenderSceneDelegate* scene_delegate, Object* object
ret = object->duplicator_visibility_flag & OB_DUPLI_FLAG_VIEWPORT; ret = object->duplicator_visibility_flag & OB_DUPLI_FLAG_VIEWPORT;
} }
} }
/*
else { else {
if (object->transflag & OB_DUPLI) { if (object->parent) {
ret = object->duplicator_visibility_flag & OB_DUPLI_FLAG_RENDER;
}
if (object->parent && (object->parent->transflag & OB_DUPLI)) {
ret = false; ret = false;
} }
}*/ else {
if (object->transflag & OB_DUPLI) {
ret = object->duplicator_visibility_flag & OB_DUPLI_FLAG_RENDER;
}
}
}
return ret; return ret;
} }