[Bf-blender-cvs] [bfa1e0e] cycles-ptex-19: Add UI for changing Ptex resolution
Nicholas Bishop
noreply at git.blender.org
Wed Jan 28 19:40:46 CET 2015
Commit: bfa1e0e39bf581fd8229a7c29c398dbc8e4083df
Author: Nicholas Bishop
Date: Mon Jan 26 15:34:14 2015 +0100
Branches: cycles-ptex-19
https://developer.blender.org/rBbfa1e0e39bf581fd8229a7c29c398dbc8e4083df
Add UI for changing Ptex resolution
===================================================================
M release/scripts/startup/bl_ui/properties_data_mesh.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/properties_data_mesh.py b/release/scripts/startup/bl_ui/properties_data_mesh.py
index 03ae9ad..0d957cc 100644
--- a/release/scripts/startup/bl_ui/properties_data_mesh.py
+++ b/release/scripts/startup/bl_ui/properties_data_mesh.py
@@ -207,6 +207,11 @@ class DATA_PT_ptex(MeshButtonsPanel, Panel):
col.operator("mesh.ptex_add", icon='ZOOMIN', text="")
col.operator("mesh.ptex_remove", icon='ZOOMOUT', text="")
+ layout.operator("mesh.ptex_res_change",
+ text='Halve Resolution').mode = 'HALVE'
+ layout.operator("mesh.ptex_res_change",
+ text='Double Resolution').mode = 'DOUBLE'
+
class DATA_PT_vertex_groups(MeshButtonsPanel, Panel):
bl_label = "Vertex Groups"
More information about the Bf-blender-cvs
mailing list