diff --git a/src/bonsai/bonsai/bim/module/drawing/operator.py b/src/bonsai/bonsai/bim/module/drawing/operator.py index c580b3459a..ba1f593096 100644 --- a/src/bonsai/bonsai/bim/module/drawing/operator.py +++ b/src/bonsai/bonsai/bim/module/drawing/operator.py @@ -3303,14 +3303,14 @@ class ExpandTargetView(bpy.types.Operator): bl_options = {"REGISTER", "UNDO"} target_view: bpy.props.StringProperty() expand_all: bpy.props.BoolProperty(name="Expand All", default=False, options={"SKIP_SAVE"}) - + def invoke(self, context, event): # Expanding all categories on shift+click. # Make sure to use SKIP_SAVE on property, otherwise it might get stuck (copied from #4771). if event.type == "LEFTMOUSE" and event.shift: self.expand_all = True return self.execute(context) - + def execute(self, context): props = tool.Drawing.get_document_props() for drawing in [d for d in props.drawings if self.expand_all or d.target_view == self.target_view]: @@ -3348,7 +3348,7 @@ class ExpandSheet(bpy.types.Operator): bl_label = "Expand Sheet" bl_description = "Show views, schedules, references etc\nplaced on this sheet.\n\nShift+click to expand all sheets." bl_options = {"REGISTER", "UNDO"} - + sheet: bpy.props.IntProperty() expand_all: bpy.props.BoolProperty(name="Expand All", default=False, options={"SKIP_SAVE"}) @@ -3368,9 +3368,11 @@ class ExpandSheet(bpy.types.Operator): class ContractSheet(bpy.types.Operator): bl_idname = "bim.contract_sheet" bl_label = "Contract Sheet" - bl_description = "Hide views, schedules, references etc\nplaced on this sheet.\n\nShift+click to contract all sheets." + bl_description = ( + "Hide views, schedules, references etc\nplaced on this sheet.\n\nShift+click to contract all sheets." + ) bl_options = {"REGISTER", "UNDO"} - + sheet: bpy.props.IntProperty() expand_all: bpy.props.BoolProperty(name="Expand All", default=False, options={"SKIP_SAVE"}) diff --git a/src/ifcopenshell-python/ifcopenshell/file.py b/src/ifcopenshell-python/ifcopenshell/file.py index 10193baa76..68d939a046 100644 --- a/src/ifcopenshell-python/ifcopenshell/file.py +++ b/src/ifcopenshell-python/ifcopenshell/file.py @@ -691,7 +691,7 @@ class file: if format == ".ifcZIP": return self.write(path, ".ifc", zipped=True) self.wrapped_data.write(str(path)) - + if zipped: unzipped_path = path.with_suffix(format) path.rename(unzipped_path)