Fixed recursion problem

This commit is contained in:
Markus Lampert
2018-01-21 21:29:21 -08:00
committed by wmayer
parent 0d063d91f1
commit c3dbeba4d9

View File

@@ -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