feat: remove headers

This commit is contained in:
Swann Martinez
2020-03-04 14:12:56 +01:00
parent f03a3aadff
commit efa243211b

View File

@ -58,16 +58,16 @@ class SessionPrefs(bpy.types.AddonPreferences):
subtype="DIR_PATH", subtype="DIR_PATH",
default=environment.DEFAULT_CACHE_DIR) default=environment.DEFAULT_CACHE_DIR)
# for UI # for UI
category: bpy.props.EnumProperty( # category: bpy.props.EnumProperty(
name="Category", # name="Category",
description="Preferences Category", # description="Preferences Category",
items=[ # items=[
('INFO', "Information", "Information about this add-on"), # ('INFO', "Information", "Information about this add-on"),
('CONFIG', "Configuration", "Configuration about this add-on"), # ('CONFIG', "Configuration", "Configuration about this add-on"),
# ('UPDATE', "Update", "Update this add-on"), # ('UPDATE', "Update", "Update this add-on"),
], # ],
default='INFO' # default='INFO'
) # )
conf_session_identity_expanded: bpy.props.BoolProperty( conf_session_identity_expanded: bpy.props.BoolProperty(
name="Identity", name="Identity",
description="Identity", description="Identity",
@ -88,7 +88,6 @@ class SessionPrefs(bpy.types.AddonPreferences):
description="timings", description="timings",
default=False default=False
) )
conf_session_cache_expanded: bpy.props.BoolProperty( conf_session_cache_expanded: bpy.props.BoolProperty(
name="Cache", name="Cache",
description="cache", description="cache",
@ -99,12 +98,12 @@ class SessionPrefs(bpy.types.AddonPreferences):
def draw(self, context): def draw(self, context):
layout = self.layout layout = self.layout
layout.row().prop(self, "category", expand=True) # layout.row().prop(self, "category", expand=True)
if self.category == 'INFO': # if self.category == 'INFO':
layout.separator() # layout.separator()
layout.label(text="WIP") # layout.label(text="Enable real-time collaborative workflow inside blender")
if self.category == 'CONFIG': # if self.category == 'CONFIG':
grid = layout.column() grid = layout.column()
# USER INFORMATIONS # USER INFORMATIONS