mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 10:23:41 +00:00
Move object data out of object tab and into new object dropdown.
This commit is contained in:
@@ -359,7 +359,7 @@ def get_tab(self, context):
|
|||||||
class BIMAreaProperties(PropertyGroup):
|
class BIMAreaProperties(PropertyGroup):
|
||||||
tab: EnumProperty(default=0, items=get_tab, name="Tab", update=update_tab)
|
tab: EnumProperty(default=0, items=get_tab, name="Tab", update=update_tab)
|
||||||
previous_tab: StringProperty(default="PROJECT", name="Previous 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):
|
class BIMProperties(PropertyGroup):
|
||||||
|
|||||||
@@ -442,12 +442,12 @@ class BIM_PT_object_metadata(Panel):
|
|||||||
bl_label = "IFC Object Metadata"
|
bl_label = "IFC Object Metadata"
|
||||||
bl_space_type = "PROPERTIES"
|
bl_space_type = "PROPERTIES"
|
||||||
bl_region_type = "WINDOW"
|
bl_region_type = "WINDOW"
|
||||||
bl_context = "object"
|
bl_context = "scene"
|
||||||
bl_order = 1
|
bl_order = 1
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
return tool.Ifc.get()
|
return tool.Blender.is_tab(context, "OBJECT") and tool.Ifc.get()
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
pass
|
pass
|
||||||
@@ -457,13 +457,13 @@ class BIM_PT_geometry_object(Panel):
|
|||||||
bl_label = "IFC Geometry"
|
bl_label = "IFC Geometry"
|
||||||
bl_space_type = "PROPERTIES"
|
bl_space_type = "PROPERTIES"
|
||||||
bl_region_type = "WINDOW"
|
bl_region_type = "WINDOW"
|
||||||
bl_context = "object"
|
bl_context = "scene"
|
||||||
bl_order = 1
|
bl_order = 1
|
||||||
bl_options = {"DEFAULT_CLOSED"}
|
bl_options = {"DEFAULT_CLOSED"}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
return tool.Ifc.get()
|
return tool.Blender.is_tab(context, "OBJECT") and tool.Ifc.get()
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
pass
|
pass
|
||||||
@@ -473,13 +473,13 @@ class BIM_PT_services_object(Panel):
|
|||||||
bl_label = "IFC Services"
|
bl_label = "IFC Services"
|
||||||
bl_space_type = "PROPERTIES"
|
bl_space_type = "PROPERTIES"
|
||||||
bl_region_type = "WINDOW"
|
bl_region_type = "WINDOW"
|
||||||
bl_context = "object"
|
bl_context = "scene"
|
||||||
bl_order = 1
|
bl_order = 1
|
||||||
bl_options = {"DEFAULT_CLOSED"}
|
bl_options = {"DEFAULT_CLOSED"}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
return tool.Ifc.get()
|
return tool.Blender.is_tab(context, "OBJECT") and tool.Ifc.get()
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
pass
|
pass
|
||||||
@@ -489,13 +489,13 @@ class BIM_PT_utilities_object(Panel):
|
|||||||
bl_label = "IFC Utilities"
|
bl_label = "IFC Utilities"
|
||||||
bl_space_type = "PROPERTIES"
|
bl_space_type = "PROPERTIES"
|
||||||
bl_region_type = "WINDOW"
|
bl_region_type = "WINDOW"
|
||||||
bl_context = "object"
|
bl_context = "scene"
|
||||||
bl_order = 1
|
bl_order = 1
|
||||||
bl_options = {"DEFAULT_CLOSED"}
|
bl_options = {"DEFAULT_CLOSED"}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
return tool.Ifc.get()
|
return tool.Blender.is_tab(context, "OBJECT") and tool.Ifc.get()
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
pass
|
pass
|
||||||
@@ -505,13 +505,13 @@ class BIM_PT_misc_object(Panel):
|
|||||||
bl_label = "IFC Misc."
|
bl_label = "IFC Misc."
|
||||||
bl_space_type = "PROPERTIES"
|
bl_space_type = "PROPERTIES"
|
||||||
bl_region_type = "WINDOW"
|
bl_region_type = "WINDOW"
|
||||||
bl_context = "object"
|
bl_context = "scene"
|
||||||
bl_order = 1
|
bl_order = 1
|
||||||
bl_options = {"DEFAULT_CLOSED"}
|
bl_options = {"DEFAULT_CLOSED"}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
return tool.Ifc.get()
|
return tool.Blender.is_tab(context, "OBJECT") and tool.Ifc.get()
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user