fix global bake
This commit is contained in:
parent
3c5ba0a6da
commit
9324eb47fa
@ -17,6 +17,12 @@
|
||||
return p.container.new(p.global, name)
|
||||
end
|
||||
|
||||
---
|
||||
-- Bakes the global scope.
|
||||
---
|
||||
function global.bake(self)
|
||||
p.container.bakeChildren(self)
|
||||
end
|
||||
|
||||
|
||||
---
|
||||
|
@ -43,7 +43,13 @@
|
||||
---
|
||||
|
||||
function oven.bake()
|
||||
p.container.bake(p.api.rootContainer())
|
||||
-- reset the root _isBaked state.
|
||||
-- this really only affects the unit-tests, since that is the only place
|
||||
-- where multiple bakes per 'exe run' happen.
|
||||
local root = p.api.rootContainer()
|
||||
root._isBaked = false;
|
||||
|
||||
p.container.bake(root)
|
||||
end
|
||||
|
||||
function oven.bakeWorkspace(wks)
|
||||
@ -52,14 +58,6 @@
|
||||
|
||||
p.alias(oven, "bakeWorkspace", "bakeSolution")
|
||||
|
||||
---
|
||||
-- Bakes the global scope.
|
||||
---
|
||||
function p.global.bake(self)
|
||||
p.container.bakeChildren(self)
|
||||
end
|
||||
|
||||
|
||||
---
|
||||
-- Bakes a specific workspace object.
|
||||
---
|
||||
|
Loading…
Reference in New Issue
Block a user