Skip to content

Commit

Permalink
Merge pull request #565 from mchorse/master
Browse files Browse the repository at this point in the history
Texture stitcher: fix UV coordinates broken in Java Block/Item
  • Loading branch information
JannisX11 authored Jun 20, 2024
2 parents 344e18c + 7d75e70 commit 1ebbe0e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins.json
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@
"icon": "fa-compress-arrows-alt",
"author": "McHorse",
"description": "Stitch multiple textures into a single texture",
"version": "1.0.5",
"version": "1.0.6",
"min_version": "4.8.0",
"tags": ["Texture"],
"variant": "both",
Expand Down
13 changes: 13 additions & 0 deletions plugins/texture_stitcher/changelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,18 @@
]
}
]
},
"1.0.6": {
"title": "1.0.6",
"date": "2024-06-19",
"author": "McHorse",
"categories": [
{
"title": "Changes",
"list": [
"Fixed UV coordinates broken in Java Block/Item"
]
}
]
}
}
6 changes: 5 additions & 1 deletion plugins/texture_stitcher/texture_stitcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,10 @@
texture.uv_width = w;
texture.uv_height = h;

/* Required to work in Java Block/Item */
Project.texture_width = w;
Project.texture_height = h;

Cube.all.forEach(cube =>
{
var toApplySides = [];
Expand Down Expand Up @@ -324,7 +328,7 @@
icon: 'fa-compress-arrows-alt',
author: 'McHorse',
description: 'Stitch multiple textures into a single texture',
version: '1.0.5',
version: '1.0.6',
min_version: "4.8.0",
tags: ["Texture"],
variant: 'both',
Expand Down

0 comments on commit 1ebbe0e

Please sign in to comment.