Commit 72bf51ff authored by Harmonikater's avatar Harmonikater
Browse files

Backsave to 2016 from newer versions during autolm

parent 6df566a5
......@@ -152,7 +152,14 @@ fn auto_lightmap_setup mapFolder sizefile:undefined areaShadows:False =
local savePath = pathconfig.appendpath mapFolder "Lightmaps/MaxLight/LightmapScene.max"
makeDir (pathconfig.appendpath mapFolder "Lightmaps/MaxLight") all:True
saveMaxFile savePath
if (maxVersion())[1] > 18000 then
saveMaxFile savePath saveAsVersion:2016
saveMaxFile savePath
LM_log " Saving scene."
LM_log "Scene setup complete."
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