Commit 15bf815d authored by Lars Kruse's avatar Lars Kruse

Merge branch 'master' into libarea

parents a28d4efc 30b554aa
......@@ -866,20 +866,11 @@ class Polygon(TransformableContainer):
if len(new_group) > 0:
group_starts = []
index1 = 0
fallout3 = 0
while index1 < len(new_group):
index2 = 0
fallout2 = len(new_group)
fallout3 += 1
while index2 < len(new_group):
fallout2 -= 1
index_distance = min(abs(index2 - index1), \
abs(len(new_group) - (index2 - index1)))
if fallout3 > 10000:
print "FALLOUT3"
print index_distance, index2, index1, len(new_group), len(group_starts)
import sys
sys.exit(1)
# skip neighbours
if index_distance > 1:
line1 = new_group[index1]
......@@ -915,7 +906,10 @@ class Polygon(TransformableContainer):
groups = []
last_start = 0
for group_start in group_starts:
groups.append(new_group[last_start:group_start])
transfer_group = new_group[last_start:group_start]
# add only non-empty groups
if transfer_group:
groups.append(transfer_group)
last_start = group_start
# Add the remaining lines to the first group or as a new
......
......@@ -228,7 +228,8 @@ class GCodeCornerStyle(pycam.Plugins.PluginBase):
self.core.get("unregister_parameter")("toolpath_processor", name)
def update_widgets(self, widget=None):
enable_tolerances = (self.path_mode.get_value() == "optimize_speed")
enable_tolerances = (self.path_mode.get_value() == \
CORNER_STYLE_OPTIMIZE_TOLERANCE)
controls = (self.motion_tolerance, self.naive_tolerance)
for control in controls:
control.get_widget().set_sensitive(enable_tolerances)
......
......@@ -159,7 +159,7 @@ class ProcessStrategyEngraving(pycam.Plugins.PluginBase):
if not models:
self.log.error("No trace models given: you need to assign a " + \
"2D model to the engraving process.")
return None, None, (None, None)
return None, None
progress = self.core.get("progress")
if process["parameters"]["radius_compensation"]:
progress.update(text="Offsetting models")
......
......@@ -118,7 +118,8 @@ class RepetitionsFilter(logging.Filter):
record.getMessage().startswith(
self._last_record.getMessage()[:self._cmp_len])
similarity = "similar"
if message_equal and (now - self._last_timestamp <= self._delay):
if not is_debug() and \
(message_equal and (now - self._last_timestamp <= self._delay)):
self._suppressed_messages_counter += 1
return False
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment