diff --git a/src/blenderbim/blenderbim/bim/prop.py b/src/blenderbim/blenderbim/bim/prop.py index 9ca579413b..c51e0611c9 100644 --- a/src/blenderbim/blenderbim/bim/prop.py +++ b/src/blenderbim/blenderbim/bim/prop.py @@ -359,7 +359,7 @@ def get_tab(self, context): class BIMAreaProperties(PropertyGroup): tab: EnumProperty(default=0, items=get_tab, name="Tab", update=update_tab) previous_tab: StringProperty(default="PROJECT", name="Previous Tab") - alt_tab: StringProperty(default="PROJECT", name="Alt Tab") + alt_tab: StringProperty(default="OBJECT", name="Alt Tab") class BIMProperties(PropertyGroup): diff --git a/src/blenderbim/blenderbim/bim/ui.py b/src/blenderbim/blenderbim/bim/ui.py index 3b6f3f2b45..281c86cdfa 100644 --- a/src/blenderbim/blenderbim/bim/ui.py +++ b/src/blenderbim/blenderbim/bim/ui.py @@ -442,12 +442,12 @@ class BIM_PT_object_metadata(Panel): bl_label = "IFC Object Metadata" bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" - bl_context = "object" + bl_context = "scene" bl_order = 1 @classmethod def poll(cls, context): - return tool.Ifc.get() + return tool.Blender.is_tab(context, "OBJECT") and tool.Ifc.get() def draw(self, context): pass @@ -457,13 +457,13 @@ class BIM_PT_geometry_object(Panel): bl_label = "IFC Geometry" bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" - bl_context = "object" + bl_context = "scene" bl_order = 1 bl_options = {"DEFAULT_CLOSED"} @classmethod def poll(cls, context): - return tool.Ifc.get() + return tool.Blender.is_tab(context, "OBJECT") and tool.Ifc.get() def draw(self, context): pass @@ -473,13 +473,13 @@ class BIM_PT_services_object(Panel): bl_label = "IFC Services" bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" - bl_context = "object" + bl_context = "scene" bl_order = 1 bl_options = {"DEFAULT_CLOSED"} @classmethod def poll(cls, context): - return tool.Ifc.get() + return tool.Blender.is_tab(context, "OBJECT") and tool.Ifc.get() def draw(self, context): pass @@ -489,13 +489,13 @@ class BIM_PT_utilities_object(Panel): bl_label = "IFC Utilities" bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" - bl_context = "object" + bl_context = "scene" bl_order = 1 bl_options = {"DEFAULT_CLOSED"} @classmethod def poll(cls, context): - return tool.Ifc.get() + return tool.Blender.is_tab(context, "OBJECT") and tool.Ifc.get() def draw(self, context): pass @@ -505,13 +505,13 @@ class BIM_PT_misc_object(Panel): bl_label = "IFC Misc." bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" - bl_context = "object" + bl_context = "scene" bl_order = 1 bl_options = {"DEFAULT_CLOSED"} @classmethod def poll(cls, context): - return tool.Ifc.get() + return tool.Blender.is_tab(context, "OBJECT") and tool.Ifc.get() def draw(self, context): pass