mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 02:31:09 +00:00
Add simple section cut results caching
This commit is contained in:
@@ -802,7 +802,9 @@ class CutSection(bpy.types.Operator):
|
||||
'shape': None,
|
||||
'face': None
|
||||
}
|
||||
ifc_cutter.pickle_file = os.path.join(ifc_cutter.data_dir, 'shapes.pickle')
|
||||
ifc_cutter.shapes_pickle_file = os.path.join(ifc_cutter.data_dir, 'shapes.pickle')
|
||||
ifc_cutter.cut_pickle_file = os.path.join(ifc_cutter.data_dir, 'cut.pickle')
|
||||
ifc_cutter.should_recut = bpy.context.scene.DocProperties.should_recut
|
||||
svg_writer = cut_ifc.SvgWriter(ifc_cutter)
|
||||
numerator, denominator = bpy.context.scene.DocProperties.diagram_scale.split(':')
|
||||
svg_writer.scale = float(numerator) / float(denominator)
|
||||
|
||||
Reference in New Issue
Block a user