Allow adding a material to the stock object.

Select the stock object and use the Arch Material button to add and assign
the material to the stock.

The only thing affected is the path-sanity report
This commit is contained in:
sliptonic
2020-08-26 14:45:31 -05:00
parent 01ac150212
commit 3cfe849f68
2 changed files with 7 additions and 1 deletions

View File

@@ -103,6 +103,7 @@ class StockFromBase(Stock):
obj.addProperty("App::PropertyDistance", "ExtYpos", "Stock", QtCore.QT_TRANSLATE_NOOP("PathStock", "Extra allowance from part bound box in positive Y direction"))
obj.addProperty("App::PropertyDistance", "ExtZneg", "Stock", QtCore.QT_TRANSLATE_NOOP("PathStock", "Extra allowance from part bound box in negative Z direction"))
obj.addProperty("App::PropertyDistance", "ExtZpos", "Stock", QtCore.QT_TRANSLATE_NOOP("PathStock", "Extra allowance from part bound box in positive Z direction"))
obj.addProperty("App::PropertyLink","Material","Component", QtCore.QT_TRANSLATE_NOOP("App::Property","A material for this object"))
obj.Base = base
obj.ExtXneg= 1.0