Fix memory leak in Xatlas module
(cherry picked from commit e57b8d79ec
)
This commit is contained in:
parent
5a290e0a3c
commit
54b6a7b8b7
1 changed files with 1 additions and 0 deletions
|
@ -78,6 +78,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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue