Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Odom <clockmender@icloud.com>2020-01-07 10:57:32 +0300
committerRune Morling <ermo.blender.org@spammesenseless.net>2020-01-15 00:26:56 +0300
commit20598a3ac66c9fe76e418d86bf4047c79f2c9818 (patch)
treec863e153c3466eb5b55b763d429e4b2c8c797e93 /precision_drawing_tools/__init__.py
parent2af992e5181d1a739d433b1255e2e1547a6b420b (diff)
PDT: Re-Arrange Menus to UI Panel Width
The menus now are re-arranged according to the width of the UI. A cut-off value is set in the Add-on Preferences. Remove vestiges of automatic UI highlighting experiment.
Diffstat (limited to 'precision_drawing_tools/__init__.py')
-rw-r--r--precision_drawing_tools/__init__.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/precision_drawing_tools/__init__.py b/precision_drawing_tools/__init__.py
index a0e254c9..35e55158 100644
--- a/precision_drawing_tools/__init__.py
+++ b/precision_drawing_tools/__init__.py
@@ -442,6 +442,12 @@ class PDTPreferences(AddonPreferences):
description="NOTE: Does not enable debugging globally in Blender (only in PDT scripts)"
)
+ pdt_ui_width : IntProperty(
+ name='UI Width Cut-off',
+ default=350,
+ description="Cutoff width for shrinking items per line in menus"
+ )
+
def draw(self, context):
layout = self.layout
@@ -449,6 +455,7 @@ class PDTPreferences(AddonPreferences):
row1 = box.row()
row2 = box.row()
row1.prop(self, "debug")
+ row1.prop(self, "pdt_ui_width")
row2.prop(self, "pdt_library_path")