Skip to content

Commit

Permalink
Fix #2478 TerrainConstraint - does not work properly with a projected…
Browse files Browse the repository at this point in the history
… map
  • Loading branch information
gwaldron committed Mar 25, 2024
1 parent 3d4177a commit 30f8198
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/osgEarth/TerrainConstraintLayer
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ namespace osgEarth
OE_OPTION_LAYER(FeatureSource, featureSource);
OE_OPTION_LAYER(TiledModelLayer, model);
OE_OPTION_VECTOR(ConfigOptions, filters);
OE_OPTION(bool, removeInterior);
OE_OPTION(bool, removeExterior);
OE_OPTION(bool, hasElevation);
OE_OPTION(unsigned, minLevel);
OE_OPTION(bool, removeInterior, false);
OE_OPTION(bool, removeExterior, false);
OE_OPTION(bool, hasElevation, false);
OE_OPTION(unsigned, minLevel, 8);
Config getConfig() const override;
void fromConfig(const Config& conf);
};
Expand Down
2 changes: 0 additions & 2 deletions src/osgEarth/TerrainConstraintLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ REGISTER_OSGEARTH_LAYER(mask, TerrainConstraintLayer);
void
TerrainConstraintLayer::Options::fromConfig(const Config& conf)
{
minLevel().setDefault(8u);

// backwards compatability
if (ciEquals(conf.key(), "featuremask"))
{
Expand Down

0 comments on commit 30f8198

Please sign in to comment.