Skip to content

Commit

Permalink
Clear existing lightmap data when assigning new data
Browse files Browse the repository at this point in the history
  • Loading branch information
SaracenOne committed Feb 16, 2021
1 parent a1222e4 commit fb8623d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scene/3d/baked_lightmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ void BakedLightmapData::clear_data() {

void BakedLightmapData::_set_user_data(const Array &p_data) {

clear_data();

// Detect old lightmapper format
if (p_data.size() % 3 == 0) {
bool is_old_format = true;
Expand Down

0 comments on commit fb8623d

Please sign in to comment.