Commandline baking not saving sublevels
Since moving from 4.19 to 4.21 I've had trouble using the commandline to bake static lighting in regards to sublevels. Previously in 4.19 it would save lightmaps to the referenced sublevels as well, now with 4.21 the information in the sublevels is definitely affecting the bake for the persistent level that I have chosen to bake, however none of the lightmaps are saving to the sublevels as well.
'UE4Editor-Cmd.exe "C:ProjectPath\ProjectName.uproject" -run=resavepackages -buildlighting -allowcommandletrendering -map=Level.umap'
I've been using the above format to bake and have had no issues prior to 4.21, do I need to do something different to achieve the same results?
Found and fixed the bug here on 4.20. Looks like it was a typo, comparing the wrong map name. Here's a fix:
Note: the fix is to to compare SublevelFilenames for StreamingLevelPackageFilename not StreamingLevelWorldAssetPackageName
answered Apr 18 '19 at 07:19 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here