Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2019-03-09 14:37:07 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2019-03-09 14:37:41 +0300
commitbe2548753a79942b31c7f717411531694a4e66fb (patch)
tree8f7b039d4d6b32b40674e7f7e71e95e7b53687f9 /ant_landscape
parent3d12701f3fbcdd339476fab60560acfab1366e42 (diff)
ant landscape: fix settings panels not showing
Diffstat (limited to 'ant_landscape')
-rw-r--r--ant_landscape/__init__.py43
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):