Skip to content

Commit

Permalink
Merge pull request #239 from hrntsm/fix/save-all-time-3dm
Browse files Browse the repository at this point in the history
Fix SaveAllArtifacts method to conditionally save artifacts
  • Loading branch information
hrntsm authored Feb 13, 2024
2 parents 54c4fba + 0c1ddd5 commit 63ffbab
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Tunny/Input/Artifact.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,14 @@ public int Count()
public void SaveAllArtifacts(string basePath)
{
TLog.MethodStart();
SaveRhino3dm(basePath);
SaveImage(basePath);
if (Geometries.Count > 0)
{
SaveRhino3dm(basePath);
}
if (Images.Count > 0)
{
SaveImage(basePath);
}
}

public void SaveRhino3dm(string basePath)
Expand Down

0 comments on commit 63ffbab

Please sign in to comment.