Set property editor mode on creation.

This commit is contained in:
Markus Lampert
2019-09-06 21:38:08 -07:00
parent cf8c0fadd1
commit a4d5ab37c7

View File

@@ -179,6 +179,7 @@ class ToolBit(object):
if len(parts) > 1:
desc = parts[1]
obj.addProperty(typ, prop, PropertyGroupBit, desc)
obj.setEditorMode(prop, 1)
value = constraint.Value
if constraint.Type == 'Angle':
value = value * 180 / math.pi