Add option to set envmap

This commit is contained in:
MathemanFlo
2022-03-05 13:56:09 +01:00
parent dcbc2807eb
commit cb0ac7e0fa
+6 -1
View File
@@ -132,6 +132,11 @@ class TabTextures {
Layers.createImageMask(asset);
});
}
if (ui.button(tr("Set as envmap"), Left)) {
App.notifyOnNextFrame(function() {
arm.io.ImportEnvmap.run(asset.file, img);
});
}
if (ui.button(tr("Delete"), Left)) {
deleteTexture(asset);
}
@@ -141,7 +146,7 @@ class TabTextures {
if (!isPacked && ui.button(tr("Open in Browser"), Left)) {
TabBrowser.showDirectory(asset.file.substr(0, asset.file.lastIndexOf(Path.sep)));
}
}, isPacked ? 5 : 7);
}, isPacked ? 6 : 8);
}
if (Config.raw.show_asset_names) {