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:
authorNicholas Bishop <nicholasbishop@gmail.com>2015-02-10 14:36:55 +0300
committerNicholas Bishop <nicholasbishop@gmail.com>2015-02-10 14:36:55 +0300
commit263814dbf6aa0523cf599f22ed10faeb8924b11c (patch)
treeb8476b2a4331c85708d90241d826bbf7a08ee37b /release/scripts/startup
parentedad4778094ba19b6241128535064b689e6c9382 (diff)
Add very simple UI for setting initial Ptex resolution
Diffstat (limited to 'release/scripts/startup')
-rw-r--r--release/scripts/startup/bl_ui/properties_data_mesh.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_mesh.py b/release/scripts/startup/bl_ui/properties_data_mesh.py
index 689325929cb..2de15a8626d 100644
--- a/release/scripts/startup/bl_ui/properties_data_mesh.py
+++ b/release/scripts/startup/bl_ui/properties_data_mesh.py
@@ -196,6 +196,7 @@ class DATA_PT_ptex(MeshButtonsPanel, Panel):
def draw(self, context):
layout = self.layout
+ pts = context.tool_settings.ptex_tool_settings
me = context.mesh
row = layout.row()
@@ -207,6 +208,8 @@ class DATA_PT_ptex(MeshButtonsPanel, Panel):
col.operator("mesh.ptex_add", icon='ZOOMIN', text="")
col.operator("mesh.ptex_remove", icon='ZOOMOUT', text="")
+ layout.prop(pts, "resolution")
+
layout.operator("mesh.ptex_res_change",
text='Halve Resolution').mode = 'HALVE'
layout.operator("mesh.ptex_res_change",