IFC Clash in the BlenderBIM Add-on now generates snapshots of clashes in BCF

This commit is contained in:
Dion Moult
2020-12-30 12:18:41 +11:00
parent 0799a78e9a
commit cd6c258687
6 changed files with 42 additions and 3 deletions
+1 -1
View File
@@ -476,7 +476,7 @@ class BcfXml:
if viewpoint.snapshot:
topic_filepath = os.path.join(self.filepath, topic.guid)
filepath = os.path.join(topic_filepath, viewpoint.snapshot)
if not os.path.exists(filepath):
if not os.path.exists(filepath) or topic_filepath not in filepath:
filename = viewpoint.guid + "." + viewpoint.snapshot[-3:]
copyfile(viewpoint.snapshot, os.path.join(topic_filepath, filename))
viewpoint.snapshot = filename