Building light on generated mesh components in the construction script

Hi,

So I add static meshes via construction script to a blueprint.
The lightmap just builds fine:

But when I reopen the map I get the warning

LogStaticMesh:Warning: Cached
component instance data transform did
not match! Discarding cached lighting
data which will cause lighting to be
unbuilt.

and the object has no lightmap applied anymore.

(The warnings here refer to another object but yeah it’s the same problem)

Does anyone know a workaround for this problem? (Except handplacing the assets ofc… )

Thanks and regards,

Andy

i’m currently getting this problem too. it seems like a serious issue that’s been totally ignored. sigh…

Hi, I currently have a very similar problem:

https://answers.unrealengine.com/questions/468959/invalidated-lightmaps-without-reason.html

without answers too :frowning:

Hi Andy,

IIRC this has already been resolved in 4.13. You can check this for yourself in the 4.13 previews that are currently available in the Epic Games Launcher.

-Tim