2021-11-06 12:45:15 +01:00
|
|
|
|
2024-08-22 23:07:22 +02:00
|
|
|
let plugin = plugin_create();
|
2021-11-06 12:45:15 +01:00
|
|
|
|
2021-11-09 18:25:03 +01:00
|
|
|
function unwrap_mesh(mesh) {
|
2024-08-22 23:07:22 +02:00
|
|
|
proc_xatlas_unwrap(mesh);
|
2021-11-06 12:45:15 +01:00
|
|
|
}
|
2021-11-09 18:25:03 +01:00
|
|
|
|
2025-07-20 00:14:24 +02:00
|
|
|
let h1 = ui_handle_create();
|
|
|
|
|
plugin_notify_on_ui(plugin, function() {
|
|
|
|
|
if (ui_panel(h1, "UV Unwrap")) {
|
|
|
|
|
if (ui_button("Unwrap Mesh")) {
|
|
|
|
|
plugin_uv_unwrap_button();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
2024-08-22 23:07:22 +02:00
|
|
|
|
|
|
|
|
util_mesh_unwrappers_set("uv_unwrap.js", unwrap_mesh);
|
|
|
|
|
plugin_notify_on_delete(plugin, function() {
|
|
|
|
|
util_mesh_unwrappers_delete("uv_unwrap.js");
|
|
|
|
|
});
|