diff options
author | AndreyL ProductEngine <alihatskiy@productengine.com> | 2018-06-02 02:18:57 +0300 |
---|---|---|
committer | AndreyL ProductEngine <alihatskiy@productengine.com> | 2018-06-02 02:18:57 +0300 |
commit | 1fe32c16fb299c1eb6a47e6860198f07b0c806c4 (patch) | |
tree | 04a3c93faa058e547140c9d43d15fb9b1467f2a6 /indra/llprimitive/llprimitive.cpp | |
parent | 18bb3f6b86b32c4ca22f0466ee175d68969a03fd (diff) | |
parent | 9437d1511e2c4b73a58abc823b1ca2a29a8a4d04 (diff) |
Merged in lindenlab/viewer-bear
Diffstat (limited to 'indra/llprimitive/llprimitive.cpp')
-rw-r--r-- | indra/llprimitive/llprimitive.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/llprimitive/llprimitive.cpp b/indra/llprimitive/llprimitive.cpp index bfa65666b5..edf7c41e40 100644 --- a/indra/llprimitive/llprimitive.cpp +++ b/indra/llprimitive/llprimitive.cpp @@ -732,6 +732,16 @@ S32 face_index_from_id(LLFaceID face_ID, const std::vector<LLProfile::Face>& fac BOOL LLPrimitive::setVolume(const LLVolumeParams &volume_params, const S32 detail, bool unique_volume) { + if (NO_LOD == detail) + { + // build the new object + setChanged(GEOMETRY); + sVolumeManager->unrefVolume(mVolumep); + mVolumep = new LLVolume(volume_params, 1, TRUE, TRUE); + setNumTEs(mVolumep->getNumFaces()); + return FALSE; + } + LLVolume *volumep; if (unique_volume) { |