浏览代码

- fixed minor issues

Marius Stanciu 6 年之前
父节点
当前提交
eedfb56bf5
共有 3 个文件被更改,包括 6 次插入5 次删除
  1. 2 2
      FlatCAMObj.py
  2. 1 0
      README.md
  3. 3 3
      camlib.py

+ 2 - 2
FlatCAMObj.py

@@ -3114,8 +3114,8 @@ class FlatCAMGeometry(FlatCAMObj, Geometry):
         # engine of FlatCAM. Most likely are generated by some of tools and are special cases of geometries.
         self. special_group = None
 
-        self.old_pp_state = ''
-        self.old_toolchangeg_state = ''
+        self.old_pp_state = self.app.defaults["geometry_multidepth"]
+        self.old_toolchangeg_state = self.app.defaults["geometry_toolchange"]
 
         # Attributes to be included in serialization
         # Always append to it because it carries contents

+ 1 - 0
README.md

@@ -16,6 +16,7 @@ CAD program, and create G-Code for Isolation routing.
 - finished adding the TclCommandCopperClear that can be called with alias: 'ncc'
 - added new capability in NCC Tool when the reference object is of Gerber type and fixed some newly introduced errors
 - fixed issue #298. The changes in postprocessors done in Preferences dis not update the object UI layout as it was supposed to. The selection of Marlin postproc. did not unhidden the Feedrate Rapids entry.
+- fixed minor issues
 
 24.08.2019
 

+ 3 - 3
camlib.py

@@ -4640,9 +4640,9 @@ class Excellon(Geometry):
         # now it can get bounds for nested lists of objects
 
         log.debug("camlib.Excellon.bounds()")
-        # if self.solid_geometry is None:
-        #     log.debug("solid_geometry is None")
-        #     return 0, 0, 0, 0
+        if self.solid_geometry is None:
+            log.debug("solid_geometry is None")
+            return 0, 0, 0, 0
 
         def bounds_rec(obj):
             if type(obj) is list: