21 lines
417 B
JavaScript
21 lines
417 B
JavaScript
|
|
let plugin = plugin_create();
|
|
|
|
function unwrap_mesh(mesh) {
|
|
proc_uv_unwrap(mesh);
|
|
}
|
|
|
|
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();
|
|
}
|
|
}
|
|
});
|
|
|
|
util_mesh_unwrappers_set("uv_unwrap.js", unwrap_mesh);
|
|
plugin_notify_on_delete(plugin, function() {
|
|
util_mesh_unwrappers_delete("uv_unwrap.js");
|
|
});
|