Fixed up ToolController template arguments and loading for the switch to JSON.

This commit is contained in:
Markus Lampert
2017-09-14 12:40:14 -07:00
committed by wmayer
parent f34b63f570
commit 4d37d8bbbe
5 changed files with 121 additions and 31 deletions

View File

@@ -115,7 +115,7 @@ class ObjectJob:
obj.Base = createResourceClone(obj, base, 'Base', 'BaseGeometry')
obj.Proxy = self
self.assignTemplate(obj, template)
self.setFromTemplate(obj, template)
if not obj.Stock:
obj.Stock = PathStock.CreateFromBase(obj)
if obj.Stock.ViewObject:
@@ -165,8 +165,8 @@ class ObjectJob:
return obj.Base.Objects[0]
return obj.Base
def assignTemplate(self, obj, template):
'''assignTemplate(obj, template) ... extract the properties from the given template file and assign to receiver.
def setFromTemplate(self, obj, template):
'''setFromTemplate(obj, template) ... extract the properties from the given template file and assign to receiver.
This will also create any TCs stored in the template.'''
tcs = []
if template: