Move object data out of object tab and into new object dropdown.

This commit is contained in:
Dion Moult
2023-07-14 13:41:02 +10:00
parent 8411feedf4
commit 2be8f4a139
2 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -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):
+10 -10
View File
@@ -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