[Bf-extensions-cvs] [be254875] master: ant landscape: fix settings panels not showing
Philipp Oeser
noreply at git.blender.org
Sat Mar 9 16:41:21 CET 2019
Commit: be2548753a79942b31c7f717411531694a4e66fb
Author: Philipp Oeser
Date: Sat Mar 9 12:37:07 2019 +0100
Branches: master
https://developer.blender.org/rBAbe2548753a79942b31c7f717411531694a4e66fb
ant landscape: fix settings panels not showing
===================================================================
M ant_landscape/__init__.py
===================================================================
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):
More information about the Bf-extensions-cvs
mailing list