Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2013-09-10 16:46:23 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2013-09-10 16:46:23 +0400
commitc4e4329f29e795d4f1cead136804956d9dd22d86 (patch)
tree966d3f790677a2d35197aa61aca3e704b3ebdce1 /source/blender/editors/space_clip/clip_ops.c
parente72c6f191f296ee772562b00b5de72688ca6f4cf (diff)
Don't show 2D cursor in tracking mode i pivoting is not set to 2D cursor
Diffstat (limited to 'source/blender/editors/space_clip/clip_ops.c')
-rw-r--r--source/blender/editors/space_clip/clip_ops.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/editors/space_clip/clip_ops.c b/source/blender/editors/space_clip/clip_ops.c
index 3d4a2ba96fc..a76f4364492 100644
--- a/source/blender/editors/space_clip/clip_ops.c
+++ b/source/blender/editors/space_clip/clip_ops.c
@@ -1464,6 +1464,14 @@ void CLIP_OT_set_scene_frames(wmOperatorType *ot)
static int clip_set_2d_cursor_exec(bContext *C, wmOperator *op)
{
SpaceClip *sclip = CTX_wm_space_clip(C);
+ bool show_cursor = false;
+
+ show_cursor |= sclip->mode == SC_MODE_MASKEDIT;
+ show_cursor |= sclip->around == V3D_CURSOR;
+
+ if (!show_cursor) {
+ return OPERATOR_CANCELLED;
+ }
RNA_float_get_array(op->ptr, "location", sclip->cursor);