constraint: fix auto labeling
This commit is contained in:
parent
05f476c9e4
commit
fb707d7185
|
@ -454,7 +454,7 @@ class Constraint(ProxyType):
|
||||||
if super(Constraint,mcs).onChanged(obj,prop):
|
if super(Constraint,mcs).onChanged(obj,prop):
|
||||||
try:
|
try:
|
||||||
if obj.Name==obj.Label or \
|
if obj.Name==obj.Label or \
|
||||||
mcs.getType(utils.getLabel(obj)):
|
mcs.getType(str(utils.getLabel(obj))):
|
||||||
obj.Label = mcs.getTypeName(obj)
|
obj.Label = mcs.getTypeName(obj)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.debug('auto constraint label failed: {}'.format(e))
|
logger.debug('auto constraint label failed: {}'.format(e))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user