diff options
author | Roxie Linden <roxie@lindenlab.com> | 2010-12-09 22:00:01 -0800 |
---|---|---|
committer | Roxie Linden <roxie@lindenlab.com> | 2010-12-09 22:00:01 -0800 |
commit | 52686947e2643eaa0f1cda03f33bbf1089d3b46d (patch) | |
tree | 0ac1953df5a44fde129ead1f5d7c3e91eea4bc90 /indra/newview/llmeshrepository.cpp | |
parent | db1af2445dac667eb24c69d005509b8ff007cc9e (diff) | |
parent | d8695e8d657568d0ebf6b63ad9cadad7e225afc7 (diff) |
automated merge
Diffstat (limited to 'indra/newview/llmeshrepository.cpp')
-rwxr-xr-x | indra/newview/llmeshrepository.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/llmeshrepository.cpp b/indra/newview/llmeshrepository.cpp index 6d117c8c39..0ee0d8393e 100755 --- a/indra/newview/llmeshrepository.cpp +++ b/indra/newview/llmeshrepository.cpp @@ -2622,6 +2622,12 @@ void LLMeshRepository::buildHull(const LLVolumeParams& params, S32 detail) LLPrimitive::sVolumeManager->unrefVolume(volume); } +bool LLMeshRepository::hasPhysicsShape(const LLUUID& mesh_id) +{ + LLSD mesh = mThread->getMeshHeader(mesh_id); + return mesh.has("physics_shape") && mesh["physics_shape"].has("size") && (mesh["physics_shape"]["size"].asInteger() > 0); +} + const LLSD& LLMeshRepository::getMeshHeader(const LLUUID& mesh_id) { return mThread->getMeshHeader(mesh_id); |