assembly: fix auto solve

This commit is contained in:
Zheng, Lei 2020-03-06 09:29:09 +08:00
parent ebd9dd8a68
commit 541b6472ed
2 changed files with 3 additions and 1 deletions

View File

@ -3573,6 +3573,8 @@ class Assembly(AsmGroup):
@classmethod
def doAutoSolve(cls):
if not cls._PendingSolve:
return
canSolve = cls.canAutoSolve()
if cls._Busy or not canSolve:
cls._PendingSolve = canSolve

View File

@ -349,7 +349,7 @@ def _solve(objs=None,recursive=None,reportFailed=False,
assemblies.append(obj)
if not assemblies:
logger.info('no assembly found')
logger.info('no assembly found', frame=1)
return True
if recursive: