mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
Decouple creating and viewing drawings/sheets to avoid focus stealing popups polluting display on long batch runs
This commit is contained in:
@@ -301,8 +301,6 @@ class CreateDrawing(bpy.types.Operator):
|
|||||||
with profile("Combine SVG layers"):
|
with profile("Combine SVG layers"):
|
||||||
svg_path = self.combine_svgs(context, underlay_svg, linework_svg, annotation_svg)
|
svg_path = self.combine_svgs(context, underlay_svg, linework_svg, annotation_svg)
|
||||||
|
|
||||||
tool.Drawing.open_with_user_command(tool.Blender.get_addon_preferences().svg_command, svg_path)
|
|
||||||
|
|
||||||
if self.print_all:
|
if self.print_all:
|
||||||
bpy.ops.bim.activate_drawing(drawing=original_drawing_id, should_view_from_camera=False)
|
bpy.ops.bim.activate_drawing(drawing=original_drawing_id, should_view_from_camera=False)
|
||||||
return {"FINISHED"}
|
return {"FINISHED"}
|
||||||
@@ -1673,11 +1671,6 @@ class CreateSheets(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
command[0] = shutil.which(command[0]) or command[0]
|
command[0] = shutil.which(command[0]) or command[0]
|
||||||
subprocess.run([replacements.get(c, c) for c in command])
|
subprocess.run([replacements.get(c, c) for c in command])
|
||||||
|
|
||||||
if svg2pdf_command:
|
|
||||||
tool.Drawing.open_with_user_command(tool.Blender.get_addon_preferences().pdf_command, pdf)
|
|
||||||
else:
|
|
||||||
tool.Drawing.open_with_user_command(tool.Blender.get_addon_preferences().svg_command, svg)
|
|
||||||
|
|
||||||
|
|
||||||
class SelectAllDrawings(bpy.types.Operator):
|
class SelectAllDrawings(bpy.types.Operator):
|
||||||
bl_idname = "bim.select_all_drawings"
|
bl_idname = "bim.select_all_drawings"
|
||||||
|
|||||||
Reference in New Issue
Block a user