Merge pull request #46009 from qarmin/xatlas_leak

Fix memory leak in Xatlas module
This commit is contained in:
Rémi Verschelde 2021-02-14 12:16:46 +01:00 committed by GitHub
commit 4eae532921
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -154,6 +154,7 @@ bool xatlas_mesh_lightmap_unwrap_callback(float p_texel_size, const float *p_ver
float h = *r_size_hint_y;
if (w == 0 || h == 0) {
xatlas::Destroy(atlas);
return false; //could not bake because there is no area
}