Persiste ExtensionCorners state for consistent UI

This commit is contained in:
Markus Lampert
2018-12-28 20:04:25 -08:00
committed by wmayer
parent d38a4087de
commit ae7ffd2be3
2 changed files with 13 additions and 1 deletions

View File

@@ -188,6 +188,9 @@ class ObjectPocket(PathPocketBase.ObjectPocket):
obj.addProperty('App::PropertyDistance', 'ExtensionLengthDefault', 'Extension', QtCore.QT_TRANSLATE_NOOP('PathPocketShape', 'Default length of extensions.'))
if not hasattr(obj, 'ExtensionFeature'):
obj.addProperty('App::PropertyLinkSubListGlobal', 'ExtensionFeature', 'Extension', QtCore.QT_TRANSLATE_NOOP('PathPocketShape', 'List of features to extend.'))
if not hasattr(obj, 'ExtensionCorners'):
obj.addProperty('App::PropertyBool', 'ExtensionCorners', 'Extension', QtCore.QT_TRANSLATE_NOOP('PathPocketShape', 'When enabled connected extension edges are combined to wires.'))
obj.UseOutline = True
obj.setEditorMode('ExtensionFeature', 2)