diff options
author | meta-androcto <meta.androcto1@gmail.com> | 2017-01-06 11:29:41 +0300 |
---|---|---|
committer | meta-androcto <meta.androcto1@gmail.com> | 2017-01-06 11:29:41 +0300 |
commit | fcf1957db4051c20d7c3ba7635851e402b70bde1 (patch) | |
tree | 231ea6f56a8fbb1804745edafe58853ec2712401 /archimesh | |
parent | 67e7e5ce0fc62862218b0bf1db24aa064179979f (diff) |
fix archimesh panels, default to "Create Tab", quick context object mode only
Diffstat (limited to 'archimesh')
-rw-r--r-- | archimesh/__init__.py | 2 | ||||
-rw-r--r-- | archimesh/achm_main_panel.py | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/archimesh/__init__.py b/archimesh/__init__.py index d05f59cf..88dc009e 100644 --- a/archimesh/__init__.py +++ b/archimesh/__init__.py @@ -151,7 +151,7 @@ class Archi_Pref(AddonPreferences): category = StringProperty( name="Tab Category", description="Choose a name for the category of the panel", - default="Archimesh", + default="Create", update=update_panel ) diff --git a/archimesh/achm_main_panel.py b/archimesh/achm_main_panel.py index a2f72388..622cb21e 100644 --- a/archimesh/achm_main_panel.py +++ b/archimesh/achm_main_panel.py @@ -399,9 +399,10 @@ class AchmPencilAction(Operator): class ArchimeshMainPanel(Panel): bl_idname = "archimesh_main_panel" bl_label = "Archimesh" - bl_space_type = 'VIEW_3D' + bl_space_type = "VIEW_3D" bl_region_type = "TOOLS" - bl_category = 'Archimesh' + bl_category = "Create" + bl_context = "objectmode" # ------------------------------ # Draw UI |