Skip to content

Commit 0555755

Browse files
committed
#4081 Meshes missing after teleport
1 parent 888d4ae commit 0555755

File tree

3 files changed

+1
-14
lines changed

3 files changed

+1
-14
lines changed

indra/newview/llmeshrepository.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5976,13 +5976,7 @@ bool LLMeshRepository::meshUploadEnabled()
59765976
bool LLMeshRepository::meshRezEnabled()
59775977
{
59785978
static LLCachedControl<bool> mesh_enabled(gSavedSettings, "MeshEnabled");
5979-
LLViewerRegion *region = gAgent.getRegion();
5980-
if(mesh_enabled &&
5981-
region)
5982-
{
5983-
return region->meshRezEnabled();
5984-
}
5985-
return false;
5979+
return mesh_enabled;
59865980
}
59875981

59885982
// Threading: main thread only

indra/newview/llviewerregion.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3720,12 +3720,6 @@ bool LLViewerRegion::bakesOnMeshEnabled() const
37203720
mSimulatorFeatures["BakesOnMeshEnabled"].asBoolean());
37213721
}
37223722

3723-
bool LLViewerRegion::meshRezEnabled() const
3724-
{
3725-
return (mSimulatorFeatures.has("MeshRezEnabled") &&
3726-
mSimulatorFeatures["MeshRezEnabled"].asBoolean());
3727-
}
3728-
37293723
bool LLViewerRegion::dynamicPathfindingEnabled() const
37303724
{
37313725
return ( mSimulatorFeatures.has("DynamicPathfindingEnabled") &&

indra/newview/llviewerregion.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,6 @@ class LLViewerRegion: public LLCapabilityProvider // implements this interface
333333

334334
void getInfo(LLSD& info);
335335

336-
bool meshRezEnabled() const;
337336
bool meshUploadEnabled() const;
338337

339338
bool bakesOnMeshEnabled() const;

0 commit comments

Comments
 (0)