Removed a redundant step which degraded performance
authorsweetbomber <ffrogger _zero_ at yahoo dot com>
Sat, 15 Jun 2013 16:44:59 +0000 (17:44 +0100)
committerIlya Zhuravlev <zhuravlevilya@ya.ru>
Sat, 15 Jun 2013 17:41:30 +0000 (21:41 +0400)
src/mapblock_mesh.cpp

index 0f83e863c0bbaf44f1218618d1538a4b158e7fbb..293d93a4c3a87810d19bd92527469c5af2d98c74 100644 (file)
@@ -717,8 +717,7 @@ TileSpec getNodeTile(MapNode mn, v3s16 p, v3s16 dir, MeshMakeData *data)
        u16 tile_index=facedir*16 + dir_i;
        TileSpec spec = getNodeTileN(mn, p, dir_to_tile[tile_index], data);
        spec.rotation=dir_to_tile[tile_index + 1];
-       std::string name = data->m_gamedef->tsrc()->getTextureName(spec.texture.id);
-       spec.texture = data->m_gamedef->tsrc()->getTexture(name);
+       spec.texture = data->m_gamedef->tsrc()->getTexture(spec.texture.id);
        return spec;
 }