diff options
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) |
