Skip to content

Commit

Permalink
Merge pull request #111 from Silverlan/develop
Browse files Browse the repository at this point in the history
fix: fix lua error when trying to bake map lightmaps
  • Loading branch information
Silverlan authored Aug 30, 2024
2 parents a6b5282 + ac8151d commit 5bc141e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ function Component:BakeMapLightmaps()
return false
end

self:UpdateLightmapTargets()

if self:GenerateLightmapUvs() == false then
self:LogErr("Failed to generate lightmap UVs.")
return false
Expand Down

0 comments on commit 5bc141e

Please sign in to comment.