[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [24887] branches/sculpt25/release/scripts/ ui/properties_data_modifier.py: Sculpt: multires UI update.

Brecht Van Lommel brecht at blender.org
Wed Nov 25 15:10:46 CET 2009


Revision: 24887
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24887
Author:   blendix
Date:     2009-11-25 15:10:45 +0100 (Wed, 25 Nov 2009)

Log Message:
-----------
Sculpt: multires UI update.

Modified Paths:
--------------
    branches/sculpt25/release/scripts/ui/properties_data_modifier.py

Modified: branches/sculpt25/release/scripts/ui/properties_data_modifier.py
===================================================================
--- branches/sculpt25/release/scripts/ui/properties_data_modifier.py	2009-11-25 14:07:12 UTC (rev 24886)
+++ branches/sculpt25/release/scripts/ui/properties_data_modifier.py	2009-11-25 14:10:45 UTC (rev 24887)
@@ -291,13 +291,20 @@
         layout.itemR(md, "mirror_object")
 
     def MULTIRES(self, layout, ob, md):
-        layout.itemR(md, "subdivision_type")
+        layout.row().itemR(md, "subdivision_type", expand=True)
 
-        row = layout.row()
-        row.itemO("object.multires_subdivide", text="Subdivide")
-        row.itemO("object.multires_higher_levels_delete", text="Delete Higher")
+        split = layout.split()
+        col = split.column()
+        col.itemR(md, "levels", text="Preview")
+        col.itemR(md, "sculpt_levels", text="Sculpt")
+        col.itemR(md, "render_levels", text="Render")
 
-        layout.itemR(md, "level")
+        col = split.column()
+        col.itemO("object.multires_subdivide", text="Subdivide")
+        col.itemO("object.multires_higher_levels_delete", text="Delete Higher")
+        # row = col.row()
+        # row.enabled = md.total_levels > 0
+        # row.itemR(md, "external")
 
     def PARTICLE_INSTANCE(self, layout, ob, md):
         layout.itemR(md, "object")
@@ -386,7 +393,6 @@
         flow.itemR(md, "levels", text="Preview")
         flow.itemR(md, "render_levels", text="Render")
         flow.itemR(md, "optimal_draw", text="Optimal Display")
-        flow.itemR(md, "subsurf_uv")
 
     def SURFACE(self, layout, ob, md):
         layout.itemL(text="See Fields panel.")





More information about the Bf-blender-cvs mailing list