Fix issue where the underlay cache option was not yet implemented and ignored.

This commit is contained in:
Dion Moult
2024-04-10 11:09:58 +10:00
parent 782573f986
commit 0a4ff00bce
@@ -341,6 +341,8 @@ class CreateDrawing(bpy.types.Operator):
if not ifcopenshell.util.element.get_pset(self.drawing, "EPset_Drawing", "HasUnderlay"):
return
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}
for obj in bpy.context.view_layer.objects: