From dca65336093669a35c62f44446b73c316c7e93ce Mon Sep 17 00:00:00 2001 From: Itai Nahshon Date: Wed, 5 Jul 2017 01:37:12 +0300 Subject: [PATCH] Reset depth_params index when starting a new iterator. Otherwise when a profile consists of multiple cuts (example: profile outline+circles+holes) only the first one will respect the requested depths. --- src/Mod/Path/PathScripts/PathUtils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Mod/Path/PathScripts/PathUtils.py b/src/Mod/Path/PathScripts/PathUtils.py index 6021595c09..b7931145c1 100644 --- a/src/Mod/Path/PathScripts/PathUtils.py +++ b/src/Mod/Path/PathScripts/PathUtils.py @@ -763,6 +763,7 @@ class depth_params: self.index = 0 def __iter__(self): + self.index = 0 return self def __next__(self):