From 8a39ddf8848018d68c3cc0b8bdef012fe9a7a4d0 Mon Sep 17 00:00:00 2001 From: Markus Lampert Date: Sun, 21 Jan 2018 21:29:21 -0800 Subject: [PATCH] Fixed recursion problem --- src/Mod/Path/PathScripts/PathDressup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Path/PathScripts/PathDressup.py b/src/Mod/Path/PathScripts/PathDressup.py index abf82e3ff4..fb9cdf09eb 100644 --- a/src/Mod/Path/PathScripts/PathDressup.py +++ b/src/Mod/Path/PathScripts/PathDressup.py @@ -38,7 +38,7 @@ def hasEntryMethod(path): '''hasEntryDressup(path) ... returns true if the given object already has an entry method attached.''' if 'RampEntry' in path.Name or 'LeadInOut' in path.Name: return True - if hasattr(path, 'Base'): + if 'Dressup' in path.Name and hasattr(path, 'Base'): return hasEntryMethod(path.Base) return False