- fixed Panelize Tool to work with objects made by merging other objects together
This commit is contained in:
@@ -7,7 +7,11 @@ CHANGELOG for FlatCAM beta
|
|||||||
|
|
||||||
=================================================
|
=================================================
|
||||||
|
|
||||||
27.01.2021
|
28.02.2021
|
||||||
|
|
||||||
|
- fixed Panelize Tool to work with objects made by merging other objects together
|
||||||
|
|
||||||
|
27.02.2021
|
||||||
|
|
||||||
- added possibility of changing the Axis color and created a new parameter for that in Preferences
|
- added possibility of changing the Axis color and created a new parameter for that in Preferences
|
||||||
- some refactoring
|
- some refactoring
|
||||||
|
|||||||
@@ -415,6 +415,7 @@ class Panelize(AppTool):
|
|||||||
old_disp_number = 0
|
old_disp_number = 0
|
||||||
|
|
||||||
for tool in panel_source_obj.tools:
|
for tool in panel_source_obj.tools:
|
||||||
|
if 'drills' in panel_source_obj.tools[tool]:
|
||||||
if panel_source_obj.tools[tool]['drills']:
|
if panel_source_obj.tools[tool]['drills']:
|
||||||
drill_nr = 0
|
drill_nr = 0
|
||||||
for drill in panel_source_obj.tools[tool]['drills']:
|
for drill in panel_source_obj.tools[tool]['drills']:
|
||||||
@@ -435,7 +436,10 @@ class Panelize(AppTool):
|
|||||||
int(element),
|
int(element),
|
||||||
disp_number))
|
disp_number))
|
||||||
old_disp_number = disp_number
|
old_disp_number = disp_number
|
||||||
|
else:
|
||||||
|
panel_source_obj.tools[tool]['drills'] = []
|
||||||
|
|
||||||
|
if 'slots' in panel_source_obj.tools[tool]:
|
||||||
if panel_source_obj.tools[tool]['slots']:
|
if panel_source_obj.tools[tool]['slots']:
|
||||||
slot_nr = 0
|
slot_nr = 0
|
||||||
for slot in panel_source_obj.tools[tool]['slots']:
|
for slot in panel_source_obj.tools[tool]['slots']:
|
||||||
@@ -461,6 +465,8 @@ class Panelize(AppTool):
|
|||||||
int(element),
|
int(element),
|
||||||
disp_number))
|
disp_number))
|
||||||
old_disp_number = disp_number
|
old_disp_number = disp_number
|
||||||
|
else:
|
||||||
|
panel_source_obj.tools[tool]['slots'] = []
|
||||||
|
|
||||||
currentx += lenghtx
|
currentx += lenghtx
|
||||||
currenty += lenghty
|
currenty += lenghty
|
||||||
|
|||||||
Reference in New Issue
Block a user