diff options
author | cosmic-linden <111533034+cosmic-linden@users.noreply.github.com> | 2024-07-11 12:18:47 -0700 |
---|---|---|
committer | Cosmic Linden <cosmic@lindenlab.com> | 2024-07-11 12:24:00 -0700 |
commit | cc7a38d9d135ae29d0252e161a0540d254d2ee0e (patch) | |
tree | 0259b7fbdd49112d82db1b0e5d484fe311cd8b74 /indra/newview/llviewerregion.cpp | |
parent | 98941831e4afab1cd5ccb5bab995a671df320f72 (diff) |
Partially revert "secondlife/viewer#1885: Terrain texture repeats: Remove feature flag dependency on simulator feature in favor of cap"
Diffstat (limited to 'indra/newview/llviewerregion.cpp')
-rwxr-xr-x | indra/newview/llviewerregion.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/llviewerregion.cpp b/indra/newview/llviewerregion.cpp index 96c839d918..25c07a5ff9 100755 --- a/indra/newview/llviewerregion.cpp +++ b/indra/newview/llviewerregion.cpp @@ -2496,10 +2496,10 @@ void LLViewerRegion::setSimulatorFeatures(const LLSD& sim_features) gSavedSettings.setBOOL("GLTFEnabled", false); } - llassert(gAgent.getRegion()); - if (gAgent.getRegion() && gAgent.getRegion()->isCapabilityAvailable("ModifyRegion")) + if (features.has("PBRTerrainTransformsEnabled")) { - gSavedSettings.setBOOL("RenderTerrainPBRTransformsEnabled", true); + bool enabled = features["PBRTerrainTransformsEnabled"]; + gSavedSettings.setBOOL("RenderTerrainPBRTransformsEnabled", enabled); } else { |