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 /release
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 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_clip.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_clip.py b/release/scripts/startup/bl_ui/space_clip.py
index ed981371924..387a6257678 100644
--- a/release/scripts/startup/bl_ui/space_clip.py
+++ b/release/scripts/startup/bl_ui/space_clip.py
@@ -211,8 +211,7 @@ class CLIP_PT_tools_marker(CLIP_PT_tracking_panel, Panel):
settings = clip.tracking.settings
col = layout.column(align=True)
- props = col.operator("clip.add_marker")
- props.location = (0.5, 0.5)
+ props = col.operator("clip.add_marker_at_center", text="Add Marker")
col.operator("clip.detect_features")
col.operator("clip.delete_track")