diff options
| author | Daniel Weipert <git@mail.dweipert.de> | 2026-06-04 10:38:38 +0200 |
|---|---|---|
| committer | Daniel Weipert <git@mail.dweipert.de> | 2026-06-04 10:38:38 +0200 |
| commit | e403abb2a721572f53af6c0c7cdb57bc7a1acf1a (patch) | |
| tree | 849c76bd0a05f04961129f68455c599697d3764b /extractor/gnd_format.gd | |
| parent | f3d360e022fce829370c7d916abe98083b14818c (diff) | |
Diffstat (limited to 'extractor/gnd_format.gd')
| -rw-r--r-- | extractor/gnd_format.gd | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/extractor/gnd_format.gd b/extractor/gnd_format.gd index c49bce6..d71cd63 100644 --- a/extractor/gnd_format.gd +++ b/extractor/gnd_format.gd @@ -91,7 +91,7 @@ static func from_bytes(bytes: ByteStream) -> GNDFormat: gnd_format.texture_paths = [] for _n in gnd_format.texture_count: gnd_format.texture_paths.append( - bytes.get_string_from_ro(gnd_format.texture_path_length) + bytes.get_string_from_ro(gnd_format.texture_path_length) # TODO: EUC-KR string is empty and converts to ascii instead. that's wrong. ) gnd_format.light_map_slice_count = bytes.decode_s32() @@ -176,10 +176,10 @@ func convert(data_path: String) -> GridMap: var mesh: ArrayMesh = cube[surface_type].mesh var material := StandardMaterial3D.new() material.albedo_texture = load( - "%s/data/texture/%s" % [ + ("%s/data/texture/%s" % [ data_path, texture_paths[cube[surface_type].surface.texture_index] - ] + ]).replace(".bmp", ".png") ) mesh.surface_set_material(0, material) |
