mgsx-dev / gdx-gltf

GLTF 2.0 3D format support and PBR shader implementation for LibGDX
Apache License 2.0
214 stars 50 forks source link

Better filenames for exported textures #36 #125

Closed antzGames closed 6 months ago

antzGames commented 6 months ago

Added a few lines to enhance the GLTFExporter class.

Will fix #36

This is needed if you need to batch export or else the texture files get overridden. This is a big quality of life improvement for someone who exports a lot of stuff.

The texture filename is prepended by the file handle name without extension, and an underscore.

I think this is a low impact and simple solution but open to suggestions.

file.nameWithoutExtension() + "_";
mgsx-dev commented 6 months ago

I'm OK with this convention, thanks