Fix #1797 Append Box UV elements to template increases size

This commit is contained in:
JannisX11 2023-03-27 23:08:20 +02:00
parent eb09fcb4a5
commit 9bc4c9e039

View File

@ -266,8 +266,8 @@ const TextureGenerator = {
var fill_map = {};
if (makeTexture instanceof Texture) {
extend_x = makeTexture.width;
extend_y = makeTexture.height;
extend_x = makeTexture.width / res_multiple;
extend_y = makeTexture.height / res_multiple;
Cube.all.forEach(element => {
for (let fkey in element.faces) {
let face = element.faces[fkey];