mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:23:53 +00:00
Fix issue where the underlay cache option was not yet implemented and ignored.
This commit is contained in:
@@ -341,6 +341,8 @@ class CreateDrawing(bpy.types.Operator):
|
|||||||
if not ifcopenshell.util.element.get_pset(self.drawing, "EPset_Drawing", "HasUnderlay"):
|
if not ifcopenshell.util.element.get_pset(self.drawing, "EPset_Drawing", "HasUnderlay"):
|
||||||
return
|
return
|
||||||
svg_path = self.get_svg_path(cache_type="underlay")
|
svg_path = self.get_svg_path(cache_type="underlay")
|
||||||
|
if os.path.isfile(svg_path) and self.props.should_use_underlay_cache:
|
||||||
|
return svg_path
|
||||||
|
|
||||||
visible_object_names = {obj.name for obj in bpy.context.visible_objects}
|
visible_object_names = {obj.name for obj in bpy.context.visible_objects}
|
||||||
for obj in bpy.context.view_layer.objects:
|
for obj in bpy.context.view_layer.objects:
|
||||||
|
|||||||
Reference in New Issue
Block a user