diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2019-03-09 14:37:07 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2019-03-09 14:37:41 +0300 |
commit | be2548753a79942b31c7f717411531694a4e66fb (patch) | |
tree | 8f7b039d4d6b32b40674e7f7e71e95e7b53687f9 | |
parent | 3d12701f3fbcdd339476fab60560acfab1366e42 (diff) |
ant landscape: fix settings panels not showing
-rw-r--r-- | ant_landscape/__init__.py | 43 |
1 files changed, 21 insertions, 22 deletions
diff --git a/ant_landscape/__init__.py b/ant_landscape/__init__.py index f9668369..7b396bb2 100644 --- a/ant_landscape/__init__.py +++ b/ant_landscape/__init__.py @@ -76,13 +76,12 @@ def menu_func_landscape(self, context): # Landscape Add Panel class AntLandscapeAddPanel(bpy.types.Panel): + bl_category = "A.N.T. Landscape" + bl_label = "Landscape" bl_idname = "ANTLANDSCAPE_PT_add" bl_space_type = "VIEW_3D" - bl_context = "objectmode" bl_region_type = "UI" - bl_label = "Landscape" - bl_category = "A.N.T. Landscape" - bl_options = {'DEFAULT_CLOSED'} + bl_context = "objectmode" def draw(self, context): col = self.layout.column() @@ -91,12 +90,12 @@ class AntLandscapeAddPanel(bpy.types.Panel): # Landscape Tools: class AntLandscapeToolsPanel(bpy.types.Panel): + bl_category = "A.N.T. Landscape" + bl_label = "Landscape Tools" bl_idname = "ANTLANDSCAPE_PT_tools" bl_space_type = "VIEW_3D" - bl_context = "objectmode" bl_region_type = "UI" - bl_label = "Landscape Tools" - bl_category = "A.N.T. Landscape" + bl_context = "objectmode" bl_options = {'DEFAULT_CLOSED'} @classmethod @@ -116,12 +115,12 @@ class AntLandscapeToolsPanel(bpy.types.Panel): # Landscape Main Settings class AntMainSettingsPanel(bpy.types.Panel): - bl_idname = "ANTMAIN_PT_layout" - bl_options = {'DEFAULT_CLOSED'} - bl_space_type = 'VIEW_3D' - bl_region_type = 'UI' - bl_context = "object" + bl_category = "A.N.T. Landscape" bl_label = "Landscape Main" + bl_idname = "ANTLANDSCAPE_PT_main" + bl_space_type = "VIEW_3D" + bl_region_type = "UI" + bl_options = {'DEFAULT_CLOSED'} @classmethod def poll(cls, context): @@ -158,12 +157,12 @@ class AntMainSettingsPanel(bpy.types.Panel): # Landscape Noise Settings class AntNoiseSettingsPanel(bpy.types.Panel): - bl_idname = "ANTNOISE_PT_layout" - bl_options = {'DEFAULT_CLOSED'} - bl_space_type = 'VIEW_3D' - bl_region_type = 'UI' - bl_context = "object" + bl_category = "A.N.T. Landscape" bl_label = "Landscape Noise" + bl_idname = "ANTLANDSCAPE_PT_noise" + bl_space_type = "VIEW_3D" + bl_region_type = "UI" + bl_options = {'DEFAULT_CLOSED'} @classmethod def poll(cls, context): @@ -356,12 +355,12 @@ class AntNoiseSettingsPanel(bpy.types.Panel): # Landscape Displace Settings class AntDisplaceSettingsPanel(bpy.types.Panel): - bl_idname = "ANTDISP_PT_layout" - bl_options = {'DEFAULT_CLOSED'} - bl_space_type = 'VIEW_3D' - bl_region_type = 'UI' - bl_context = "object" + bl_category = "A.N.T. Landscape" bl_label = "Landscape Displace" + bl_idname = "ANTLANDSCAPE_PT_disp" + bl_space_type = "VIEW_3D" + bl_region_type = "UI" + bl_options = {'DEFAULT_CLOSED'} @classmethod def poll(cls, context): |