Animated-Java / animated-java

A Blockbench plugin that makes complex animation a breeze in Minecraft: Java Edition.
Other
159 stars 26 forks source link

[FR] Remove Duplicate Textures with Identical Base64 Strings from JSON Export #259

Closed Dearliet closed 2 months ago

Dearliet commented 2 months ago

If two textures translate to the same base64 string, export and reference only one of them in the JSON.

image

"textures": {
    "8b8260ea-165c-f0e8-c83a-3c3880867106": {
        "name": "texture2.png",
        "id": "0",
        "src": "base64string"
    }
}
SnaveSutit commented 2 months ago

This is a user-end optimization, the user should not have two identical textures, as there is no reason to do so.