[Bf-blender-cvs] [a42c59d27c7] greasepencil-object: UI: Set some panels closed by default
Antonio Vazquez
noreply at git.blender.org
Tue Aug 8 11:19:24 CEST 2017
Commit: a42c59d27c799310fd5dcd1eed61fdf20b63d113
Author: Antonio Vazquez
Date: Mon Aug 7 15:50:11 2017 +0200
Branches: greasepencil-object
https://developer.blender.org/rBa42c59d27c799310fd5dcd1eed61fdf20b63d113
UI: Set some panels closed by default
===================================================================
M release/scripts/startup/bl_ui/properties_data_gpencil.py
M release/scripts/startup/bl_ui/properties_grease_pencil_common.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/properties_data_gpencil.py b/release/scripts/startup/bl_ui/properties_data_gpencil.py
index d77275457c8..df0be90df09 100644
--- a/release/scripts/startup/bl_ui/properties_data_gpencil.py
+++ b/release/scripts/startup/bl_ui/properties_data_gpencil.py
@@ -66,6 +66,7 @@ class DATA_PT_gpencil_layeroptionpanel(GreasePencilLayerOptionPanel, Panel):
bl_region_type = 'WINDOW'
bl_context = "data"
bl_label = "Options"
+ bl_options = {'DEFAULT_CLOSED'}
# NOTE: this is just a wrapper around the generic GP Panel
@@ -75,6 +76,7 @@ class DATA_PT_gpencil_onionpanel(GreasePencilOnionPanel, Panel):
bl_region_type = 'WINDOW'
bl_context = "data"
bl_label = "Onion Skinning"
+ bl_options = {'DEFAULT_CLOSED'}
# NOTE: this is just a wrapper around the generic GP Panel
@@ -84,6 +86,7 @@ class DATA_PT_gpencilparentpanel(GreasePencilParentLayerPanel, Panel):
bl_region_type = 'WINDOW'
bl_context = "data"
bl_label = "Layer Relations"
+ bl_options = {'DEFAULT_CLOSED'}
# NOTE: this is just a wrapper around the generic GP Panel
@@ -92,9 +95,11 @@ class DATA_PT_gpencilvertexpanel(GreasePencilVertexGroupPanel, Panel):
bl_region_type = 'WINDOW'
bl_context = "data"
bl_label = "Vertex Groups"
+ bl_options = {'DEFAULT_CLOSED'}
class DATA_PT_gpencil_display(DataButtonsPanel, Panel):
bl_label = "Display"
+ bl_options = {'DEFAULT_CLOSED'}
def draw(self, context):
layout = self.layout
diff --git a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
index 9aaf4f5e94a..881b0f23ee2 100644
--- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
+++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
@@ -1059,6 +1059,7 @@ class GreasePencilDataPanel:
class GreasePencilLayerOptionPanel:
bl_label = "Options"
bl_region_type = 'UI'
+ bl_options = {'DEFAULT_CLOSED'}
@classmethod
def poll(cls, context):
@@ -1121,6 +1122,7 @@ class GreasePencilLayerOptionPanel:
class GreasePencilOnionPanel:
bl_label = "Onion Skinning"
bl_region_type = 'UI'
+ bl_options = {'DEFAULT_CLOSED'}
@classmethod
def poll(cls, context):
@@ -1183,6 +1185,7 @@ class GreasePencilOnionPanel:
class GreasePencilParentLayerPanel:
bl_label = "Parent Layer"
bl_region_type = 'UI'
+ bl_options = {'DEFAULT_CLOSED'}
@classmethod
def poll(cls, context):
@@ -1241,6 +1244,7 @@ class GPENCIL_UL_vgroups(UIList):
class GreasePencilVertexGroupPanel:
bl_label = "Vertex Groups"
bl_region_type = 'UI'
+ bl_options = {'DEFAULT_CLOSED'}
@classmethod
def poll(cls, context):
@@ -1529,6 +1533,7 @@ class GreasePencilToolsPanel:
# bl_options = {'DEFAULT_CLOSED'}
bl_label = "Grease Pencil Settings"
bl_region_type = 'UI'
+ bl_options = {'DEFAULT_CLOSED'}
@classmethod
def poll(cls, context):
More information about the Bf-blender-cvs
mailing list