constraint: tolerate empty lock constraint

This commit is contained in:
Zheng, Lei 2018-03-21 15:43:28 +08:00
parent 827d2c0f96
commit 55ba2c2b3c

View File

@ -463,7 +463,7 @@ class Constraint(ProxyType):
if not found:
if not firstInfo:
return None
return ret
if utils.isDraftObject(firstInfo.Part):
Locked.lockElement(firstInfo,solver)
logger.debug('lock first draft object {}'.format(