diff options
author | Alan Odom <clockmender@icloud.com> | 2020-01-28 14:05:27 +0300 |
---|---|---|
committer | Rune Morling <ermo.blender.org@spammesenseless.net> | 2020-02-01 18:42:03 +0300 |
commit | 7597a8b66d4562ef1bb8c8f648b692202ebffc30 (patch) | |
tree | 273e2810f77f70800905dfb41906e4b3fc623a39 /precision_drawing_tools/__init__.py | |
parent | 4d0298a3f9240cff351f7225819f55dbe29836a9 (diff) |
Add System Input Rounding
Applies system rounding to inputs as defined in Add-on Preferences.
Default is 5 places of decimal, values taken from UI, or by calculation are
rounded before command is submitted.
Diffstat (limited to 'precision_drawing_tools/__init__.py')
-rw-r--r-- | precision_drawing_tools/__init__.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/precision_drawing_tools/__init__.py b/precision_drawing_tools/__init__.py index 1d2bb313..81ef97e4 100644 --- a/precision_drawing_tools/__init__.py +++ b/precision_drawing_tools/__init__.py @@ -448,15 +448,23 @@ class PDTPreferences(AddonPreferences): description="Cutoff width for shrinking items per line in menus" ) + pdt_input_round : IntProperty( + name='Input Rounding', + default=5, + description='Rounding Factor for Inputs' + ) + def draw(self, context): layout = self.layout box = layout.box() row1 = box.row() row2 = box.row() + row3 = box.row() row1.prop(self, "debug") - row1.prop(self, "pdt_ui_width") - row2.prop(self, "pdt_library_path") + row2.prop(self, "pdt_ui_width") + row2.prop(self, "pdt_input_round") + row3.prop(self, "pdt_library_path") # List of All Classes in the Add-on to register |