[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [23788] trunk/blender/release/scripts/ui/ space_view3d.py: *Added ability to enable GLSL display in the 3D Views View panel (n key).
William Reynish
william at reynish.com
Mon Oct 12 18:34:55 CEST 2009
Revision: 23788
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=23788
Author: billrey
Date: 2009-10-12 18:34:55 +0200 (Mon, 12 Oct 2009)
Log Message:
-----------
*Added ability to enable GLSL display in the 3D Views View panel (n key).
*Commented out the Quad View options since they don't work yet.
Modified Paths:
--------------
trunk/blender/release/scripts/ui/space_view3d.py
Modified: trunk/blender/release/scripts/ui/space_view3d.py
===================================================================
--- trunk/blender/release/scripts/ui/space_view3d.py 2009-10-12 16:00:39 UTC (rev 23787)
+++ trunk/blender/release/scripts/ui/space_view3d.py 2009-10-12 16:34:55 UTC (rev 23788)
@@ -1125,6 +1125,7 @@
def draw(self, context):
layout = self.layout
view = context.space_data
+ gs = context.scene.game_data
col = layout.column()
col.itemR(view, "display_floor", text="Grid Floor")
@@ -1134,17 +1135,22 @@
col.itemR(view, "outline_selected")
col.itemR(view, "all_object_centers")
col.itemR(view, "relationship_lines")
- col.itemR(view, "textured_solid")
- layout.itemS()
-
- layout.itemO("screen.region_foursplit", text="Toggle Quad View")
-
col = layout.column()
- col.itemR(view, "lock_rotation")
- col.itemR(view, "box_preview")
- col.itemR(view, "box_clip")
+ col.itemL(text="Shading:")
+ col.itemR(gs, "material_mode", text="")
+ col.itemR(view, "textured_solid")
+
+# XXX - the Quad View options don't work yet
+# layout.itemS()
+#
+# layout.itemO("screen.region_foursplit", text="Toggle Quad View")
+# col = layout.column()
+# col.itemR(view, "lock_rotation")
+# col.itemR(view, "box_preview")
+# col.itemR(view, "box_clip")
+
class VIEW3D_PT_3dview_meshdisplay(bpy.types.Panel):
__space_type__ = 'VIEW_3D'
__region_type__ = 'UI'
More information about the Bf-blender-cvs
mailing list