mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-14 19:11:36 +08:00
[godot] Closes #2372, fix UTF-8 texture atlas loading.
This commit is contained in:
parent
fb11c02be8
commit
57388824ca
@ -194,7 +194,8 @@ Error SpineAtlasResource::load_from_file(const String &path) {
|
||||
|
||||
clear();
|
||||
texture_loader = new GodotSpineTextureLoader(&textures, &normal_maps, normal_map_prefix);
|
||||
atlas = new spine::Atlas(atlas_data.utf8(), atlas_data.size(), source_path.get_base_dir().utf8(), texture_loader);
|
||||
auto utf8 = atlas_data.utf8();
|
||||
atlas = new spine::Atlas(utf8.ptr(), utf8.size(), source_path.get_base_dir().utf8(), texture_loader);
|
||||
if (atlas) return OK;
|
||||
|
||||
clear();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user