Changed PathJob to deal with JSON template files instead of XML.

This commit is contained in:
Markus Lampert
2017-09-14 16:35:22 -07:00
committed by wmayer
parent 4d37d8bbbe
commit b4d0428059
5 changed files with 70 additions and 62 deletions

View File

@@ -202,7 +202,7 @@ class StockEdit(object):
obj.Document.removeObject(self.obj.Stock.Name)
obj.Stock = stock
if stock.ViewObject and stock.ViewObject.Proxy:
stock.ViewObject.Proxy.onEdit(OpenCloseResourceEditor)
stock.ViewObject.Proxy.onEdit(_OpenCloseResourceEditor)
def setLengthField(self, widget, prop):
widget.setText(FreeCAD.Units.Quantity(prop.Value, FreeCAD.Units.Length).UserString)