diff options
author | Dave Parks <davep@lindenlab.com> | 2011-06-06 19:12:52 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2011-06-06 19:12:52 -0500 |
commit | b3fbb12f155ae1acc6b4d258d1c383d5d8e47964 (patch) | |
tree | 6bc0a1db00daedfb61537ee326fb68dd6252c2bf /indra/newview/llmeshrepository.cpp | |
parent | 86d6c3f196af3f40bcd4fc62c7828476c7a9d037 (diff) |
SH-1589 Fix for some meshes showing up in non mesh enabled regions.
Diffstat (limited to 'indra/newview/llmeshrepository.cpp')
-rwxr-xr-x | indra/newview/llmeshrepository.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/indra/newview/llmeshrepository.cpp b/indra/newview/llmeshrepository.cpp index ff9f0e1663..bfaddf9cde 100755 --- a/indra/newview/llmeshrepository.cpp +++ b/indra/newview/llmeshrepository.cpp @@ -2379,7 +2379,6 @@ void LLMeshRepository::notifyLoadedMeshes() if (gAgent.getRegion()->getName() != region_name && gAgent.getRegion()->capabilitiesReceived())
{
region_name = gAgent.getRegion()->getName();
-
mGetMeshCapability = gAgent.getRegion()->getCapability("GetMesh");
}
}
@@ -3725,10 +3724,7 @@ bool LLMeshRepository::meshUploadEnabled() LLViewerParcelMgr::getInstance()->allowAgentBuild() &&
region)
{
- LLSD sim_features;
- region->getSimulatorFeatures(sim_features);
- return (sim_features.has("MeshUploadEnabled") &&
- sim_features["MeshUploadEnabled"].asBoolean());
+ return region->meshUploadEnabled();
}
return false;
}
@@ -3739,10 +3735,7 @@ bool LLMeshRepository::meshRezEnabled() if(gSavedSettings.getBOOL("MeshEnabled") &&
region)
{
- LLSD sim_features;
- region->getSimulatorFeatures(sim_features);
- return (sim_features.has("MeshRezEnabled") &&
- sim_features["MeshRezEnabled"].asBoolean());
+ return region->meshRezEnabled();
}
return false;
}
|