We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 594d64e commit aeece9dCopy full SHA for aeece9d
modules/gltf/gltf_document.cpp
@@ -3832,10 +3832,9 @@ Error GLTFDocument::_serialize_images(Ref<GLTFState> p_state) {
3832
if (p_state->filename.to_lower().ends_with("gltf")) {
3833
String img_name = p_state->images[i]->get_name();
3834
if (img_name.is_empty()) {
3835
- img_name = itos(i);
+ img_name = itos(i).pad_zeros(3);
3836
}
3837
img_name = _gen_unique_name(p_state, img_name);
3838
- img_name = img_name.pad_zeros(3);
3839
String relative_texture_dir = "textures";
3840
String full_texture_dir = p_state->base_path.path_join(relative_texture_dir);
3841
Ref<DirAccess> da = DirAccess::open(p_state->base_path);
0 commit comments