Added support for centering the base object inside stock.

This commit is contained in:
Markus Lampert
2017-09-02 23:05:54 -07:00
committed by wmayer
parent caeab63ec8
commit 8f77c7575f
2 changed files with 47 additions and 19 deletions

View File

@@ -82,7 +82,9 @@ def SetupStockObject(obj, addVPProxy):
def CreateFromBase(job):
obj = FreeCAD.ActiveDocument.addObject('Part::FeaturePython', 'Stock')
proxy = StockFromBase(obj, job.Base)
# don't want to use the resrouce clone - we want the real object so
# Base and Stock can be placed independently
proxy = StockFromBase(obj, job.Proxy.baseObject(job))
SetupStockObject(obj, True)
proxy.execute(obj)
obj.purgeTouched()