diff options
author | Alan Odom <clockmender@icloud.com> | 2019-12-30 17:43:35 +0300 |
---|---|---|
committer | Rune Morling <ermo.blender.org@spammesenseless.net> | 2020-01-15 00:24:07 +0300 |
commit | 479531654816970b55be491ccd48b723c002c50f (patch) | |
tree | 1608819b679ef3acda8d40facbc12d0cf2b22d43 /precision_drawing_tools/pdt_menus.py | |
parent | 0d57c62d6f7b8861c041cd910a5c7a893c47152f (diff) |
PDT: Add features to Command Line
Add "Re-Run" button to repeat last command line input.
Add "Maths Output" to take result of calculation when the `mo` command is used.
Allow commas in maths operation so calls like `hypot(3,4)` can be used.
Diffstat (limited to 'precision_drawing_tools/pdt_menus.py')
-rw-r--r-- | precision_drawing_tools/pdt_menus.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/precision_drawing_tools/pdt_menus.py b/precision_drawing_tools/pdt_menus.py index 3095f775..a3b03a40 100644 --- a/precision_drawing_tools/pdt_menus.py +++ b/precision_drawing_tools/pdt_menus.py @@ -355,3 +355,7 @@ class PDT_PT_PanelCommandLine(Panel): row.label(text="Comand Line, uses Plane & Mode Options") row = layout.row() row.prop(pdt_pg, "command", text="") + # Try Re-run + row.operator("pdt.command_rerun", text="", icon="LOOP_BACK") + row = layout.row() + row.prop(pdt_pg, "mathsout", text="Maths Output") |