diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-03-08 22:17:12 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-03-08 22:17:12 +0400 |
commit | 743f464f756c1c8915ab00ec6c714693b8c4ca9f (patch) | |
tree | cc35bc132db3cd5210c7eed23a4d43de1de77931 /release | |
parent | b16f24c944467f6e4a07bcbeeabe17f73dc98244 (diff) |
changes to ruler
- click-drag adds a ruler if there are none.
- pressing enter stores the ruler for re-use when activating again (saves as a grease-pencil layer).
- add to toolbar.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d_toolbar.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py index 91a55892370..a677c9d8568 100644 --- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py +++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py @@ -64,6 +64,8 @@ def draw_gpencil_tools(context, layout): row = col.row() row.prop(context.tool_settings, "use_grease_pencil_sessions") + col.operator("view3d.ruler") + # ********** default tools for object-mode **************** @@ -102,8 +104,9 @@ class VIEW3D_PT_tools_objectmode(View3DPanel, Panel): col = layout.column(align=True) col.label(text="Motion Paths:") - col.operator("object.paths_calculate", text="Calculate Paths") - col.operator("object.paths_clear", text="Clear Paths") + row = col.row(align=True) + row.operator("object.paths_calculate", text="Calculate") + row.operator("object.paths_clear", text="Clear") draw_repeat_tools(context, layout) |