Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/draw_manager.c
| Show First 20 Lines • Show All 164 Lines • ▼ Show 20 Lines | |||||
| 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_DEPSGRAPH) != 0); | ||||
| if (ob->type == OB_MESH) { | if (ob->type == OB_MESH) { | ||||
| if ((ob == DST.draw_ctx.object_edit) || DRW_object_is_in_edit_mode(ob)) { | if ((ob == DST.draw_ctx.object_edit) || DRW_object_is_in_edit_mode(ob)) { | ||||
| View3D *v3d = DST.draw_ctx.v3d; | View3D *v3d = DST.draw_ctx.v3d; | ||||
| const int mask = (V3D_OVERLAY_EDIT_OCCLUDE_WIRE | V3D_OVERLAY_EDIT_WEIGHT); | const int mask = (V3D_OVERLAY_EDIT_RETOPOLOGY | V3D_OVERLAY_EDIT_WEIGHT); | ||||
| if (v3d && v3d->overlay.edit_flag & mask) { | if (v3d && v3d->overlay.edit_flag & mask) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| return true; | return true; | ||||
| ▲ Show 20 Lines • Show All 2,849 Lines • Show Last 20 Lines | |||||