#4081 Meshes missing after teleport
parent
d5780ba40e
commit
a7ba94d507
|
|
@ -6207,13 +6207,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
|
||||
|
|
|
|||
|
|
@ -3983,12 +3983,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") &&
|
||||
|
|
|
|||
|
|
@ -356,7 +356,6 @@ public:
|
|||
|
||||
void getInfo(LLSD& info);
|
||||
|
||||
bool meshRezEnabled() const;
|
||||
bool meshUploadEnabled() const;
|
||||
|
||||
bool bakesOnMeshEnabled() const;
|
||||
|
|
|
|||
Loading…
Reference in New Issue