From 02954407703430dcefba0b165360d201fe8e205c Mon Sep 17 00:00:00 2001 From: jaseg Date: Fri, 31 Mar 2023 16:31:44 +0200 Subject: Improve layer stack handling --- gerbonara/cam.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gerbonara/cam.py') diff --git a/gerbonara/cam.py b/gerbonara/cam.py index 9819087..14d4c61 100644 --- a/gerbonara/cam.py +++ b/gerbonara/cam.py @@ -444,5 +444,8 @@ class LazyCamFile: def save(self, filename, *args, **kwargs): """ Copy this Gerber file to the new path. """ - shutil.copy(self.original_path, filename) + if 'instance' in self.__dict__: # instance has been loaded, and might have been modified + self.instance.save(filename, *args, **kwargs) + else: + shutil.copy(self.original_path, filename) -- cgit