*Added ability to enable GLSL display in the 3D Views View panel (n key).
authorWilliam Reynish <william@reynish.com>
Mon, 12 Oct 2009 16:34:55 +0000 (16:34 +0000)
committerWilliam Reynish <william@reynish.com>
Mon, 12 Oct 2009 16:34:55 +0000 (16:34 +0000)
*Commented out the Quad View options since they don't work yet.

release/scripts/ui/space_view3d.py

index 3d91f73d209029896dc6088bb86c3e646954d6bf..832ec0c5999d04b55ab384b09d77803ab52c250c 100644 (file)
@@ -1125,6 +1125,7 @@ class VIEW3D_PT_3dview_display(bpy.types.Panel):
        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,16 +1135,21 @@ class VIEW3D_PT_3dview_display(bpy.types.Panel):
                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'