Skip to content

Commit

Permalink
Removed a redundant step which degraded performance
Browse files Browse the repository at this point in the history
  • Loading branch information
sweetbomber authored and Ilya Zhuravlev committed Jun 15, 2013
1 parent 93dfc3e commit 0413f8a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/mapblock_mesh.cpp
Expand Up @@ -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;
}

Expand Down

0 comments on commit 0413f8a

Please sign in to comment.