Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/draw_manager.c
| Context not available. | |||||
| bool DRW_object_is_renderable(const Object *ob) | bool DRW_object_is_renderable(const Object *ob) | ||||
| { | { | ||||
| BLI_assert((ob->base_flag & BASE_VISIBLE_DEPSGRAPH) != 0); | BLI_assert((ob->base_flag & BASE_VISIBLE) != 0); | ||||
| if (ob->type == OB_MESH) { | if (ob->type == OB_MESH) { | ||||
| if ((ob == DST.draw_ctx.object_edit) || BKE_object_is_in_editmode(ob)) { | if ((ob == DST.draw_ctx.object_edit) || BKE_object_is_in_editmode(ob)) { | ||||
| Context not available. | |||||
| return false; | return false; | ||||
| } | } | ||||
| /* If not using local view or local collection the object may still be in a hidden collection. */ | |||||
| if (((v3d->localvd) == NULL) && ((v3d->flag & V3D_LOCAL_COLLECTIONS) == 0)) { | |||||
| return (ob->base_flag & BASE_VISIBLE_VIEWLAYER) != 0; | |||||
| } | |||||
| return true; | return true; | ||||
| } | } | ||||
| Context not available. | |||||