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/llviewerregion.cpp | |
| parent | 86d6c3f196af3f40bcd4fc62c7828476c7a9d037 (diff) | |
SH-1589 Fix for some meshes showing up in non mesh enabled regions.
Diffstat (limited to 'indra/newview/llviewerregion.cpp')
| -rw-r--r-- | indra/newview/llviewerregion.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/newview/llviewerregion.cpp b/indra/newview/llviewerregion.cpp index 80207d6568..a370e83410 100644 --- a/indra/newview/llviewerregion.cpp +++ b/indra/newview/llviewerregion.cpp @@ -1716,4 +1716,16 @@ std::string LLViewerRegion::getDescription() const return stringize(*this); } +bool LLViewerRegion::meshUploadEnabled() const
+{
+ return (mSimulatorFeatures.has("MeshUploadEnabled") &&
+ mSimulatorFeatures["MeshUploadEnabled"].asBoolean());
+}
+
+bool LLViewerRegion::meshRezEnabled() const
+{
+ return (mSimulatorFeatures.has("MeshRezEnabled") &&
+ mSimulatorFeatures["MeshRezEnabled"].asBoolean());
+}
+ |
