- fixed TclCommandFollow command; an older function name was used who yielded wrong results

This commit is contained in:
Marius Stanciu
2019-08-22 23:09:41 +03:00
committed by Marius
parent 299ccb2eca
commit 017d495a41
3 changed files with 4 additions and 3 deletions

View File

@@ -773,7 +773,7 @@ class FlatCAMGerber(FlatCAMObj, Gerber):
if self.ui.follow_cb.get_value() is True: if self.ui.follow_cb.get_value() is True:
obj = self.app.collection.get_active() obj = self.app.collection.get_active()
obj.follow() obj.follow_geo()
# in the end toggle the visibility of the origin object so we can see the generated Geometry # in the end toggle the visibility of the origin object so we can see the generated Geometry
obj.ui.plot_cb.toggle() obj.ui.plot_cb.toggle()
else: else:
@@ -785,7 +785,7 @@ class FlatCAMGerber(FlatCAMObj, Gerber):
if self.ui.follow_cb.get_value() is True: if self.ui.follow_cb.get_value() is True:
obj = self.app.collection.get_active() obj = self.app.collection.get_active()
obj.follow() obj.follow_geo()
# in the end toggle the visibility of the origin object so we can see the generated Geometry # in the end toggle the visibility of the origin object so we can see the generated Geometry
obj.ui.plot_cb.toggle() obj.ui.plot_cb.toggle()
else: else:

View File

@@ -17,6 +17,7 @@ CAD program, and create G-Code for Isolation routing.
- moved the canvas setup into it's own function and called it in the init() function - moved the canvas setup into it's own function and called it in the init() function
- fixed the Buffer Tool in Geometry Editor; made the Buffer entry field a QDoubleSpinner and set the lower limit to zero. - fixed the Buffer Tool in Geometry Editor; made the Buffer entry field a QDoubleSpinner and set the lower limit to zero.
- fixed Tool Cutout so when the target Gerber is a single Polygon then the created manual geometry will follow the shape if shape is freeform - fixed Tool Cutout so when the target Gerber is a single Polygon then the created manual geometry will follow the shape if shape is freeform
- fixed TclCommandFollow command; an older function name was used who yielded wrong results
21.08.2019 21.08.2019

View File

@@ -57,7 +57,7 @@ class TclCommandFollow(TclCommandSignaled):
del args['name'] del args['name']
try: try:
obj.follow(**args) obj.follow_geo(**args)
except Exception as e: except Exception as e:
return "Operation failed: %s" % str(e) return "Operation failed: %s" % str(e)