Merge pull request #1249 from WorldofBay/patch-2
do not clear _isIncludingExternal in nested calls
This commit is contained in:
commit
4639116959
@ -82,10 +82,11 @@
|
||||
|
||||
function includeexternal(fname)
|
||||
local fullPath = p.findProjectScript(fname)
|
||||
local wasIncludingExternal = api._isIncludingExternal
|
||||
api._isIncludingExternal = true
|
||||
fname = fullPath or fname
|
||||
dofile(fname)
|
||||
api._isIncludingExternal = nil
|
||||
api._isIncludingExternal = wasIncludingExternal
|
||||
end
|
||||
|
||||
p.alias(_G, "includeexternal", "includeExternal")
|
||||
|
Reference in New Issue
Block a user