Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/overlay/overlay_engine.c
| Show First 20 Lines • Show All 237 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| OVERLAY_Data *data = vedata; | OVERLAY_Data *data = vedata; | ||||
| OVERLAY_PrivateData *pd = data->stl->pd; | OVERLAY_PrivateData *pd = data->stl->pd; | ||||
| const DRWContextState *draw_ctx = DRW_context_state_get(); | const DRWContextState *draw_ctx = DRW_context_state_get(); | ||||
| const bool is_select = DRW_state_is_select(); | const bool is_select = DRW_state_is_select(); | ||||
| const bool renderable = DRW_object_is_renderable(ob); | const bool renderable = DRW_object_is_renderable(ob); | ||||
| const bool in_pose_mode = ob->type == OB_ARMATURE && OVERLAY_armature_is_pose_mode(ob, draw_ctx); | const bool in_pose_mode = ob->type == OB_ARMATURE && OVERLAY_armature_is_pose_mode(ob, draw_ctx); | ||||
| const bool in_edit_mode = overlay_object_is_edit_mode(pd, ob); | const bool in_edit_mode = overlay_object_is_edit_mode(pd, ob); | ||||
| const bool in_particle_edit_mode = ob->mode == OB_MODE_PARTICLE_EDIT; | const bool in_particle_edit_mode = (ob->mode == OB_MODE_PARTICLE_EDIT) && | ||||
| (pd->ctx_mode == CTX_MODE_PARTICLE); | |||||
| const bool in_paint_mode = (ob == draw_ctx->obact) && | const bool in_paint_mode = (ob == draw_ctx->obact) && | ||||
| (draw_ctx->object_mode & OB_MODE_ALL_PAINT); | (draw_ctx->object_mode & OB_MODE_ALL_PAINT); | ||||
| const bool in_sculpt_mode = (ob == draw_ctx->obact) && (ob->sculpt != NULL) && | const bool in_sculpt_mode = (ob == draw_ctx->obact) && (ob->sculpt != NULL) && | ||||
| (ob->sculpt->mode_type == OB_MODE_SCULPT); | (ob->sculpt->mode_type == OB_MODE_SCULPT); | ||||
| const bool has_surface = ELEM(ob->type, | const bool has_surface = ELEM(ob->type, | ||||
| OB_MESH, | OB_MESH, | ||||
| OB_CURVE, | OB_CURVE, | ||||
| OB_SURF, | OB_SURF, | ||||
| ▲ Show 20 Lines • Show All 345 Lines • Show Last 20 Lines | |||||