UI: closure some more panels by default, leaving open mostly 1 per tab.
authorWilliam Reynish <billreynish>
Thu, 18 Oct 2018 10:13:06 +0000 (12:13 +0200)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Thu, 18 Oct 2018 10:14:25 +0000 (12:14 +0200)
intern/cycles/blender/addon/ui.py
release/scripts/startup/bl_ui/properties_data_armature.py
release/scripts/startup/bl_ui/properties_data_bone.py
release/scripts/startup/bl_ui/properties_data_camera.py
release/scripts/startup/bl_ui/properties_data_curve.py
release/scripts/startup/bl_ui/properties_data_light.py
release/scripts/startup/bl_ui/properties_data_lightprobe.py
release/scripts/startup/bl_ui/properties_data_mesh.py
release/scripts/startup/bl_ui/properties_data_speaker.py
release/scripts/startup/bl_ui/properties_render.py
release/scripts/startup/bl_ui/properties_scene.py

index 2b8702bd5bad214d2df519ad4ca326af6b3dfd87..e12ca0600580fb262491084134c99a693e3f027a 100644 (file)
@@ -709,6 +709,7 @@ class CYCLES_RENDER_PT_performance_viewport(CyclesButtonsPanel, Panel):
 
 class CYCLES_RENDER_PT_filter(CyclesButtonsPanel, Panel):
     bl_label = "Filter"
+    bl_options = {'DEFAULT_CLOSED'}
     bl_context = "view_layer"
 
     def draw(self, context):
@@ -1830,6 +1831,7 @@ class CYCLES_RENDER_PT_debug(CyclesButtonsPanel, Panel):
 class CYCLES_SCENE_PT_simplify(CyclesButtonsPanel, Panel):
     bl_label = "Simplify"
     bl_context = "scene"
+    bl_options = {'DEFAULT_CLOSED'}
     COMPAT_ENGINES = {'CYCLES'}
 
     def draw_header(self, context):
index f41036db5a5ff20c56fb5ce5a7093083102ce95c..16d40e25324734c4baf3fc56613fca828f7247ce 100644 (file)
@@ -68,6 +68,7 @@ class DATA_PT_skeleton(ArmatureButtonsPanel, Panel):
 
 class DATA_PT_display(ArmatureButtonsPanel, Panel):
     bl_label = "Display"
+    bl_options = {'DEFAULT_CLOSED'}
 
     def draw(self, context):
         layout = self.layout
@@ -100,6 +101,7 @@ class DATA_MT_bone_group_specials(Menu):
 
 class DATA_PT_bone_groups(ArmatureButtonsPanel, Panel):
     bl_label = "Bone Groups"
+    bl_options = {'DEFAULT_CLOSED'}
 
     @classmethod
     def poll(cls, context):
@@ -295,6 +297,7 @@ from .properties_animviz import (
 
 class DATA_PT_motion_paths(MotionPathButtonsPanel, Panel):
     #bl_label = "Bones Motion Paths"
+    bl_options = {'DEFAULT_CLOSED'}
     bl_context = "data"
 
     @classmethod
index bdee55666fdd07a4b9f6e3d8b065c786dafd3168..60464ca48cbe59918db9dbc7792fe5b228fe596d 100644 (file)
@@ -123,7 +123,7 @@ class BONE_PT_transform(BoneButtonsPanel, Panel):
 
 class BONE_PT_curved(BoneButtonsPanel, Panel):
     bl_label = "Bendy Bones"
-    #bl_options = {'DEFAULT_CLOSED'}
+    bl_options = {'DEFAULT_CLOSED'}
 
     def draw(self, context):
         ob = context.object
@@ -195,6 +195,7 @@ class BONE_PT_curved(BoneButtonsPanel, Panel):
 
 
 class BONE_PT_relations(BoneButtonsPanel, Panel):
+    bl_options = {'DEFAULT_CLOSED'}
     bl_label = "Relations"
 
     def draw(self, context):
@@ -240,6 +241,7 @@ class BONE_PT_relations(BoneButtonsPanel, Panel):
 
 class BONE_PT_display(BoneButtonsPanel, Panel):
     bl_label = "Display"
+    bl_options = {'DEFAULT_CLOSED'}
 
     @classmethod
     def poll(cls, context):
index ca3fd93e2dddb0394014906ddc16944913849f8a..0e3ee0e3044b1abe1a6f8d03380d400056b66f95 100644 (file)
@@ -181,6 +181,7 @@ class DATA_PT_camera_stereoscopy(CameraButtonsPanel, Panel):
 
 class DATA_PT_camera(CameraButtonsPanel, Panel):
     bl_label = "Camera"
+    bl_options = {'DEFAULT_CLOSED'}
     COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_OPENGL'}
 
     def draw_header_preset(self, context):
index 7c65969e398e77728c8bf7cf07e17cf5f91e36ef..9155da14c6b20a9f99c7f2c17631329082dae266 100644 (file)
@@ -156,6 +156,7 @@ class DATA_PT_curve_texture_space(CurveButtonsPanel, Panel):
 
 class DATA_PT_geometry_curve(CurveButtonsPanelCurve, Panel):
     bl_label = "Geometry"
+    bl_options = {'DEFAULT_CLOSED'}
 
     @classmethod
     def poll(cls, context):
@@ -226,6 +227,7 @@ class DATA_PT_geometry_curve_bevel(CurveButtonsPanelCurve, Panel):
 
 class DATA_PT_pathanim(CurveButtonsPanelCurve, Panel):
     bl_label = "Path Animation"
+    bl_options = {'DEFAULT_CLOSED'}
 
     def draw_header(self, context):
         curve = context.curve
@@ -252,6 +254,7 @@ class DATA_PT_pathanim(CurveButtonsPanelCurve, Panel):
 
 class DATA_PT_active_spline(CurveButtonsPanelActive, Panel):
     bl_label = "Active Spline"
+    bl_options = {'DEFAULT_CLOSED'}
 
     def draw(self, context):
         layout = self.layout
@@ -321,6 +324,7 @@ class DATA_PT_active_spline(CurveButtonsPanelActive, Panel):
 
 class DATA_PT_font(CurveButtonsPanelText, Panel):
     bl_label = "Font"
+    bl_options = {'DEFAULT_CLOSED'}
 
     def draw(self, context):
         layout = self.layout
@@ -429,6 +433,7 @@ class DATA_PT_paragraph_spacing(CurveButtonsPanelText, Panel):
 
 class DATA_PT_text_boxes(CurveButtonsPanelText, Panel):
     bl_label = "Text Boxes"
+    bl_options = {'DEFAULT_CLOSED'}
 
     def draw(self, context):
         layout = self.layout
index f5c985f2abecfdffb2efd2f4c3d31569acbf48e4..8aa70d1e05f118833e2003c69d10dc4e99b2f429 100644 (file)
@@ -107,6 +107,7 @@ class DATA_PT_EEVEE_light(DataButtonsPanel, Panel):
 
 class DATA_PT_EEVEE_shadow(DataButtonsPanel, Panel):
     bl_label = "Shadow"
+    bl_options = {'DEFAULT_CLOSED'}
     COMPAT_ENGINES = {'BLENDER_EEVEE'}
 
     @classmethod
index 846745718868073f80dab05a5bdffd9949cff9fa..2ca7e1723b69cc39cfafc09573d52c675a3580f3 100644 (file)
@@ -112,6 +112,7 @@ class DATA_PT_lightprobe(DataButtonsPanel, Panel):
 
 class DATA_PT_lightprobe_parallax(DataButtonsPanel, Panel):
     bl_label = "Custom Parallax"
+    bl_options = {'DEFAULT_CLOSED'}
     COMPAT_ENGINES = {'BLENDER_EEVEE'}
 
     @classmethod
@@ -141,7 +142,8 @@ class DATA_PT_lightprobe_parallax(DataButtonsPanel, Panel):
 
 
 class DATA_PT_lightprobe_display(DataButtonsPanel, Panel):
-    bl_label = "Display"
+    bl_label = "Viewport Display"
+    bl_options = {'DEFAULT_CLOSED'}
     COMPAT_ENGINES = {'BLENDER_EEVEE'}
 
     def draw(self, context):
index c23b0fdc4466c03f8baafcb45bb9f05f53adc9ba..687f23341fe4d47ad35331609fd26aade0334716 100644 (file)
@@ -385,6 +385,7 @@ class DATA_PT_shape_keys(MeshButtonsPanel, Panel):
 
 class DATA_PT_uv_texture(MeshButtonsPanel, Panel):
     bl_label = "UV Maps"
+    bl_options = {'DEFAULT_CLOSED'}
     COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_OPENGL'}
 
     def draw(self, context):
@@ -404,6 +405,7 @@ class DATA_PT_uv_texture(MeshButtonsPanel, Panel):
 
 class DATA_PT_vertex_colors(MeshButtonsPanel, Panel):
     bl_label = "Vertex Colors"
+    bl_options = {'DEFAULT_CLOSED'}
     COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_OPENGL'}
 
     def draw(self, context):
index f1482dbe61dce754e9c88552c8a1bdf2ccf5cba7..cd2b9934aaf57452f102d04c6f96273075afafc1 100644 (file)
@@ -76,6 +76,7 @@ class DATA_PT_speaker(DataButtonsPanel, Panel):
 
 class DATA_PT_distance(DataButtonsPanel, Panel):
     bl_label = "Distance"
+    bl_options = {'DEFAULT_CLOSED'}
     COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_OPENGL'}
 
     def draw(self, context):
@@ -99,6 +100,7 @@ class DATA_PT_distance(DataButtonsPanel, Panel):
 
 class DATA_PT_cone(DataButtonsPanel, Panel):
     bl_label = "Cone"
+    bl_options = {'DEFAULT_CLOSED'}
     COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_OPENGL'}
 
     def draw(self, context):
index 34a21b761437aba674875c6eca1ba8a501092c55..fbc19a4c83eb8d984d711df6141730c02a81362e 100644 (file)
@@ -287,6 +287,7 @@ class RENDER_PT_stamp_burn(RenderButtonsPanel, Panel):
 
 class RENDER_PT_output(RenderButtonsPanel, Panel):
     bl_label = "Output"
+    bl_options = {'DEFAULT_CLOSED'}
     COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_OPENGL'}
 
     def draw(self, context):
index d1e01f2bae4fa021ed34916111f94a052380a37e..47f6c7662b13f658ebec8f5d986c011941df7750 100644 (file)
@@ -74,6 +74,7 @@ class SCENE_PT_scene(SceneButtonsPanel, Panel):
 
 class SCENE_PT_unit(SceneButtonsPanel, Panel):
     bl_label = "Units"
+    bl_options = {'DEFAULT_CLOSED'}
     COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_OPENGL'}
 
     def draw(self, context):