Skip to content
Snippets Groups Projects
Commit 0413f8ad authored by sweetbomber's avatar sweetbomber Committed by Ilya Zhuravlev
Browse files

Removed a redundant step which degraded performance

parent 93dfc3ec
No related branches found
No related tags found
No related merge requests found
...@@ -717,8 +717,7 @@ TileSpec getNodeTile(MapNode mn, v3s16 p, v3s16 dir, MeshMakeData *data) ...@@ -717,8 +717,7 @@ TileSpec getNodeTile(MapNode mn, v3s16 p, v3s16 dir, MeshMakeData *data)
u16 tile_index=facedir*16 + dir_i; u16 tile_index=facedir*16 + dir_i;
TileSpec spec = getNodeTileN(mn, p, dir_to_tile[tile_index], data); TileSpec spec = getNodeTileN(mn, p, dir_to_tile[tile_index], data);
spec.rotation=dir_to_tile[tile_index + 1]; 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(spec.texture.id);
spec.texture = data->m_gamedef->tsrc()->getTexture(name);
return spec; return spec;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment