Switched to using hand made stock objects even for the basic types.

This commit is contained in:
Markus Lampert
2017-09-04 14:27:17 -07:00
committed by wmayer
parent 89f5bcded2
commit e6249387f2
2 changed files with 95 additions and 33 deletions

View File

@@ -319,7 +319,7 @@ class StockFromExistingEdit(StockEdit):
if stock:
stock = PathJob.createResourceClone(obj, stock, 'Stock', 'Stock')
stock.ViewObject.Visibility = True
PathStock.SetupStockObject(stock, False)
PathStock.SetupStockObject(stock, PathStock.StockType.Unknown)
stock.Proxy.execute(stock)
self.setStock(obj, stock)