xatlas should be using the options configured here

It was using the defaults by mistake

(cherry picked from commit 9367b1d6c1)
This commit is contained in:
Adam Brown 2020-12-02 09:22:35 -08:00 committed by Rémi Verschelde
parent 77e6164a3d
commit 639fdefc10
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -68,7 +68,7 @@ bool xatlas_mesh_lightmap_unwrap_callback(float p_texel_size, const float *p_ver
ERR_FAIL_COND_V_MSG(err != xatlas::AddMeshError::Success, false, xatlas::StringForEnum(err)); ERR_FAIL_COND_V_MSG(err != xatlas::AddMeshError::Success, false, xatlas::StringForEnum(err));
printf("Generate..\n"); printf("Generate..\n");
xatlas::Generate(atlas, chart_options, xatlas::PackOptions()); xatlas::Generate(atlas, chart_options, pack_options);
*r_size_hint_x = atlas->width; *r_size_hint_x = atlas->width;
*r_size_hint_y = atlas->height; *r_size_hint_y = atlas->height;