UI: rename mesh Settings panel to Texture Space, since it only contains
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 6 Jun 2011 19:44:28 +0000 (19:44 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 6 Jun 2011 19:44:28 +0000 (19:44 +0000)
settings related to that. Also close by default.

release/scripts/startup/bl_ui/properties_data_mesh.py

index 1f75b5059a55078952d53bc02c6f4a030edc816f..e2c8841317793c2ef9aa706d81fe2ffe96bc91ba 100644 (file)
@@ -99,8 +99,9 @@ class DATA_PT_normals(MeshButtonsPanel, bpy.types.Panel):
         split.prop(mesh, "show_double_sided")
 
 
-class DATA_PT_settings(MeshButtonsPanel, bpy.types.Panel):
-    bl_label = "Settings"
+class DATA_PT_texture_space(MeshButtonsPanel, bpy.types.Panel):
+    bl_label = "Texture Space"
+    bl_options = {'DEFAULT_CLOSED'}
     COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'}
 
     def draw(self, context):
@@ -109,11 +110,13 @@ class DATA_PT_settings(MeshButtonsPanel, bpy.types.Panel):
         mesh = context.mesh
 
         layout.prop(mesh, "texture_mesh")
+
+        layout.separator()
+
         layout.prop(mesh, "use_auto_texspace")
-        
         row = layout.row()
-        row.column().prop(mesh, "texspace_location")
-        row.column().prop(mesh, "texspace_size")
+        row.column().prop(mesh, "texspace_location", text="Location")
+        row.column().prop(mesh, "texspace_size", text="Size")
 
 class DATA_PT_vertex_groups(MeshButtonsPanel, bpy.types.Panel):
     bl_label = "Vertex Groups"