Parcourir la source

Fix uv map update on mesh append

luboslenco il y a 8 mois
Parent
commit
d882c1efe6
2 fichiers modifiés avec 5 ajouts et 1 suppressions
  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();
 				}
 			});
 		}