Add UseOutline property to PocketShape in order to mill full pockets and not have to add all sub-shapes.

This commit is contained in:
Markus Lampert
2018-08-17 20:57:52 -07:00
committed by wmayer
parent 321b159f27
commit 04807fddd7
6 changed files with 57 additions and 28 deletions

View File

@@ -177,6 +177,8 @@ class ObjectOp(object):
if FeatureNoFinalDepth & features:
obj.setEditorMode('OpFinalDepth', 2)
self.opOnDocumentRestored(obj)
def __getstate__(self):
'''__getstat__(self) ... called when receiver is saved.
Can safely be overwritten by subclasses.'''
@@ -198,6 +200,11 @@ class ObjectOp(object):
Should be overwritten by subclasses.'''
pass
def opOnDocumentRestored(self, obj):
'''opOnDocumentRestored(obj) ... implement if an op needs special handling like migrating the data model.
Should be overwritten by subclasses.'''
pass
def opOnChanged(self, obj, prop):
'''opOnChanged(obj, prop) ... overwrite to process property changes.
This is a callback function that is invoked each time a property of the