Skip to content

Commit

Permalink
Fix a merge flub
Browse files Browse the repository at this point in the history
  • Loading branch information
gwaldron committed Nov 10, 2023
1 parent 0dea146 commit fd58fbb
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/osgEarthProcedural/LifeMapLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -423,11 +423,10 @@ LifeMapLayer::createImageImplementation(
ElevationPool* ep = map->getElevationPool();
ep->getTile(key, true, elevTile, &_workingSet, progress);

// ensure we have a normal map for slopes and curvatures:
if (elevTile.valid() && getTerrainWeight() > 0.0f)
{
elevTile->generateNormalMap(map.get(), &_workingSet, progress);
}
// ensure we have a normal map for slopes and curvatures:
if (elevTile.valid() && getTerrainWeight() > 0.0f)
{
elevTile->generateNormalMap(map.get(), &_workingSet, progress);
}

GeoExtent extent = key.getExtent();
Expand Down

0 comments on commit fd58fbb

Please sign in to comment.