瀏覽代碼

Fix uv map update on mesh append

luboslenco 8 月之前
父節點
當前提交
d882c1efe6
共有 2 個文件被更改,包括 5 次插入1 次删除
  1. 4 0
      base/sources/project.ts
  2. 1 1
      base/sources/tab_meshes.ts

+ 4 - 0
base/sources/project.ts

@@ -403,6 +403,10 @@ function project_import_mesh(replace_existing: bool = true, done: ()=>void = nul
 	});
 }
 
+function project_append_mesh() {
+	project_import_mesh(false, import_mesh_finish_import);
+}
+
 function project_import_mesh_box(path: string, replace_existing: bool = true, clear_layers: bool = true, done: ()=>void = null) {
 
 	_project_import_mesh_box_path = path;

+ 1 - 1
base/sources/tab_meshes.ts

@@ -34,7 +34,7 @@ function tab_meshes_draw(htab: ui_handle_t) {
 					project_import_mesh(true);
 				}
 				if (ui_menu_button(ui, tr("Append"))) {
-					project_import_mesh(false);
+					project_append_mesh();
 				}
 			});
 		}