Fix memory leak in Xatlas module
This commit is contained in:
parent
041cccc287
commit
e57b8d79ec
|
@ -154,6 +154,7 @@ bool xatlas_mesh_lightmap_unwrap_callback(float p_texel_size, const float *p_ver
|
||||||
float h = *r_size_hint_y;
|
float h = *r_size_hint_y;
|
||||||
|
|
||||||
if (w == 0 || h == 0) {
|
if (w == 0 || h == 0) {
|
||||||
|
xatlas::Destroy(atlas);
|
||||||
return false; //could not bake because there is no area
|
return false; //could not bake because there is no area
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue