浏览代码

xatlas should be using the options configured here

It was using the defaults by mistake

(cherry picked from commit 9367b1d6c11c3f1960e0bcd2bfe64685da3bfc1b)
Adam Brown 4 年之前
父节点
当前提交
639fdefc10
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/xatlas_unwrap/register_types.cpp

+ 1 - 1
modules/xatlas_unwrap/register_types.cpp

@@ -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));
 
 	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_y = atlas->height;