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-05-22 10:06:22 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2013-05-22 10:06:22 +0400
commit4c0e50011e77e05628be805932eb213e5bb4f209 (patch)
tree584f80df33c43be221777f42decc504a8e3fa586 /source/blender/editors/space_clip/space_clip.c
parentaa0caa448eb192b61800130b86c86794f43832e7 (diff)
Fix #35461: Marker gets initialized to arbitrary position
Use center of currently visible frame part instead of center of the whole frame for position of marker which is adding from toolbox. Used separate operator for this to keep operators more atomic and not confuse with lots of conflicting properties.
Diffstat (limited to 'source/blender/editors/space_clip/space_clip.c')
-rw-r--r--source/blender/editors/space_clip/space_clip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/space_clip/space_clip.c b/source/blender/editors/space_clip/space_clip.c
index d4d2a1af380..fcb33474fa2 100644
--- a/source/blender/editors/space_clip/space_clip.c
+++ b/source/blender/editors/space_clip/space_clip.c
@@ -465,6 +465,7 @@ static void clip_operatortypes(void)
/* markers */
WM_operatortype_append(CLIP_OT_add_marker);
+ WM_operatortype_append(CLIP_OT_add_marker_at_center);
WM_operatortype_append(CLIP_OT_slide_marker);
WM_operatortype_append(CLIP_OT_delete_track);
WM_operatortype_append(CLIP_OT_delete_marker);