diff --git a/src/blenderbim/blenderbim/bim/module/model/ui.py b/src/blenderbim/blenderbim/bim/module/model/ui.py index f3ecff8691..367917a3f0 100644 --- a/src/blenderbim/blenderbim/bim/module/model/ui.py +++ b/src/blenderbim/blenderbim/bim/module/model/ui.py @@ -54,8 +54,10 @@ class LaunchTypeManager(bpy.types.Operator): props.type_page = 1 if get_ifc_class(None, context): ifc_class = props.ifc_class or AuthoringData.data["ifc_element_type"] - props.type_class = ifc_class - bpy.ops.bim.load_type_thumbnails(ifc_class=ifc_class, offset=0, limit=9) + else: + ifc_class = AuthoringData.data["ifc_element_type"] + props.type_class = ifc_class + bpy.ops.bim.load_type_thumbnails(ifc_class=ifc_class, offset=0, limit=9) return context.window_manager.invoke_popup(self, width=550) def draw(self, context): diff --git a/src/blenderbim/blenderbim/bim/module/model/workspace.py b/src/blenderbim/blenderbim/bim/module/model/workspace.py index 554a48ce42..c1c62f95ce 100644 --- a/src/blenderbim/blenderbim/bim/module/model/workspace.py +++ b/src/blenderbim/blenderbim/bim/module/model/workspace.py @@ -522,11 +522,12 @@ class BimToolUI: row.label(text=f"No {AuthoringData.data['ifc_element_type']} Found", icon="ERROR") row = cls.layout.row() row.prop(cls.props, "type_name") - row = cls.layout.row() + row = cls.layout.row(align=True) op = row.operator( "bim.add_default_type", icon="ADD", text=f"Add {AuthoringData.data['ifc_element_type']}" ) op.ifc_element_type = AuthoringData.data["ifc_element_type"] + row.operator("bim.launch_type_manager", icon=tool.Blender.TYPE_MANAGER_ICON, text="") else: row.label(text="No Element Types Found", icon="ERROR") row.operator("bim.launch_type_manager", icon=tool.Blender.TYPE_MANAGER_ICON, text="Launch Type Manager")