diff options
| author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2025-05-14 20:14:10 +0300 | 
|---|---|---|
| committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2025-05-14 21:28:30 +0300 | 
| commit | 05557554c39ca938a488c534f74cf8d45e8f7c50 (patch) | |
| tree | 577dac80049a95bef4318c2d573f55c1a66d289c /indra/newview | |
| parent | 888d4ae9dfaf7ba3866c668fbac92502ce252f3b (diff) | |
#4081 Meshes missing after teleport
Diffstat (limited to 'indra/newview')
| -rw-r--r-- | indra/newview/llmeshrepository.cpp | 8 | ||||
| -rwxr-xr-x | indra/newview/llviewerregion.cpp | 6 | ||||
| -rw-r--r-- | indra/newview/llviewerregion.h | 1 | 
3 files changed, 1 insertions, 14 deletions
| diff --git a/indra/newview/llmeshrepository.cpp b/indra/newview/llmeshrepository.cpp index 851107b3be..e7e95034b2 100644 --- a/indra/newview/llmeshrepository.cpp +++ b/indra/newview/llmeshrepository.cpp @@ -5976,13 +5976,7 @@ bool LLMeshRepository::meshUploadEnabled()  bool LLMeshRepository::meshRezEnabled()  {      static LLCachedControl<bool> mesh_enabled(gSavedSettings, "MeshEnabled"); -    LLViewerRegion *region = gAgent.getRegion(); -    if(mesh_enabled && -       region) -    { -        return region->meshRezEnabled(); -    } -    return false; +    return mesh_enabled;  }  // Threading:  main thread only diff --git a/indra/newview/llviewerregion.cpp b/indra/newview/llviewerregion.cpp index 697433148b..b9f52e11aa 100755 --- a/indra/newview/llviewerregion.cpp +++ b/indra/newview/llviewerregion.cpp @@ -3720,12 +3720,6 @@ bool LLViewerRegion::bakesOnMeshEnabled() const          mSimulatorFeatures["BakesOnMeshEnabled"].asBoolean());  } -bool LLViewerRegion::meshRezEnabled() const -{ -    return (mSimulatorFeatures.has("MeshRezEnabled") && -                mSimulatorFeatures["MeshRezEnabled"].asBoolean()); -} -  bool LLViewerRegion::dynamicPathfindingEnabled() const  {      return ( mSimulatorFeatures.has("DynamicPathfindingEnabled") && diff --git a/indra/newview/llviewerregion.h b/indra/newview/llviewerregion.h index d0ec1fe877..244e2b7835 100644 --- a/indra/newview/llviewerregion.h +++ b/indra/newview/llviewerregion.h @@ -333,7 +333,6 @@ public:      void getInfo(LLSD& info); -    bool meshRezEnabled() const;      bool meshUploadEnabled() const;      bool bakesOnMeshEnabled() const; | 
