Merged in Beta (pull request #341)

TclCommandAlignDrill and TclCommandPaint related fixes (keys in structs, method passing as ints)
This commit is contained in:
Bogusz Jagoda 2021-02-22 09:30:26 +00:00 committed by Marius Stanciu
commit cc520baf4d
2 changed files with 6 additions and 6 deletions

View File

@ -173,7 +173,7 @@ class TclCommandAlignDrill(TclCommandSignaled):
drills.append(point_mirror) drills.append(point_mirror)
init_obj.tools = { init_obj.tools = {
'1': { 1: {
'tooldia': tooldia, 'tooldia': tooldia,
'drills': drills, 'drills': drills,
'solid_geometry': [] 'solid_geometry': []

View File

@ -122,15 +122,15 @@ class TclCommandPaint(TclCommand):
if 'method' in args: if 'method' in args:
method = args['method'] method = args['method']
if method == "standard": if method == "standard":
method = _("Standard") method = 0 # _("Standard")
elif method == "seed": elif method == "seed":
method = _("Seed") method = 1 # _("Seed")
elif method == "lines": elif method == "lines":
method = _("Lines") method = 2 # _("Lines")
elif method == "laser_lines": elif method == "laser_lines":
method = _("Laser_lines") method = 3 # _("Laser_lines")
else: else:
method = _("Combo") method = 4 # _("Combo")
else: else:
method = str(self.app.defaults["tools_paint_method"]) method = str(self.app.defaults["tools_paint_method"])