Commit dd515186 authored by Harmonikater's avatar Harmonikater
Browse files

Fix invalid reference error

parent 86bd7068
Pipeline #8206 passed with stage
in 36 seconds
......@@ -97,7 +97,7 @@ fn switchOriginalAlpha val objs:geometry =
)
)
fn bf2RenderBakedObj obj outDir_1 showVFB:false &timeSkip:false=
fn bf2RenderBakedObj obj outDir_1 showVFB:false &timeSkip: =
(
local outDir = makeTrailingSlash (copy outDir_1)
......@@ -154,7 +154,7 @@ fn bf2RenderBakedObj obj outDir_1 showVFB:false &timeSkip:false=
-- should maybe still include separate passes here
if doesFileExist theFileName then
(
timeSkip = true
if timeSkip != unsupplied do timeSkip = true
return true
)
)
......@@ -188,7 +188,7 @@ fn bf2RenderBakedObj obj outDir_1 showVFB:false &timeSkip:false=
)
fn bf2RenderLightmapOnObj obj outDir_1 showVFB:false singleLods:"All" single:false &timeSkip:false=
fn bf2RenderLightmapOnObj obj outDir_1 showVFB:false singleLods:"All" single:false &timeSkip: =
(
-- format " bf2RenderLightmapOnObj() %\n" obj
......@@ -327,13 +327,13 @@ fn bf2LightmapsRenderBatch outDir_1 sceneRoots:undefined multiplePCs:#(1,1) show
LM_log (" Object: " + ((i-skipped-startObject+1) as string) + " of " + (objsToRendCount as string))
bSuccess = false
timeSkip = false
if timeSkip != unsupplied do timeSkip = false
if g_bf2lightmap_progress != -1 then
bSuccess = bf2RenderLightmapOnObj sceneRoots[i] outDir_1 showVFB:showVFB singleLods:singleLods single:single timeSkip:&timeSkip
if not bSuccess then exit
if timeSkip then
if timeSkip != unsupplied and timeSkip then
(
objsToRendCount = objsToRendCount - 1
skipped = skipped - 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment