Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/draw_view.c
| Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | static bool is_cursor_visible(const DRWContextState *draw_ctx, Scene *scene, ViewLayer *view_layer) | ||||
| } | } | ||||
| View3D *v3d = draw_ctx->v3d; | View3D *v3d = draw_ctx->v3d; | ||||
| if ((v3d->flag2 & V3D_HIDE_OVERLAYS) || (v3d->overlay.flag & V3D_OVERLAY_HIDE_CURSOR)) { | if ((v3d->flag2 & V3D_HIDE_OVERLAYS) || (v3d->overlay.flag & V3D_OVERLAY_HIDE_CURSOR)) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| /* don't draw cursor in paint modes, but with a few exceptions */ | /* don't draw cursor in paint modes, but with a few exceptions */ | ||||
| if (draw_ctx->object_mode & OB_MODE_ALL_PAINT) { | if ((draw_ctx->object_mode & (OB_MODE_ALL_PAINT | OB_MODE_SCULPT_CURVES)) != 0) { | ||||
| /* exception: object is in weight paint and has deforming armature in pose mode */ | /* exception: object is in weight paint and has deforming armature in pose mode */ | ||||
| if (draw_ctx->object_mode & OB_MODE_WEIGHT_PAINT) { | if (draw_ctx->object_mode & OB_MODE_WEIGHT_PAINT) { | ||||
| if (BKE_object_pose_armature_get(draw_ctx->obact) != NULL) { | if (BKE_object_pose_armature_get(draw_ctx->obact) != NULL) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| } | } | ||||
| /* exception: object in texture paint mode, clone brush, use_clone_layer disabled */ | /* exception: object in texture paint mode, clone brush, use_clone_layer disabled */ | ||||
| else if (draw_ctx->object_mode & OB_MODE_TEXTURE_PAINT) { | else if (draw_ctx->object_mode & OB_MODE_TEXTURE_PAINT) { | ||||
| ▲ Show 20 Lines • Show All 225 Lines • Show Last 20 Lines | |||||