summaryrefslogtreecommitdiff
path: root/indra/llmath/llvolume.cpp
diff options
context:
space:
mode:
authorDavid Parks <davep@lindenlab.com>2009-11-04 14:19:05 +0000
committerDavid Parks <davep@lindenlab.com>2009-11-04 14:19:05 +0000
commit88292104d9a2332e6169f2add8f0b590bb22dbff (patch)
tree7c9b96b7b90aeb7a497e6faaab3461747bbdab0d /indra/llmath/llvolume.cpp
parent9c3595465972ba4be916e871f6b0a62cc0c13d4a (diff)
Fix for crash when loading some meshes.
Added button to auto-fill LODs.
Diffstat (limited to 'indra/llmath/llvolume.cpp')
-rw-r--r--indra/llmath/llvolume.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/llmath/llvolume.cpp b/indra/llmath/llvolume.cpp
index afa82ed399..ddd1b4b3db 100644
--- a/indra/llmath/llvolume.cpp
+++ b/indra/llmath/llvolume.cpp
@@ -1690,9 +1690,11 @@ LLVolume::LLVolume(const LLVolumeParams &params, const F32 detail, const BOOL ge
mGenerateSingleFace = generate_single_face;
- generate();
+ mLODScaleBias.setVec(1,1,1);
+
if (mParams.getSculptID().isNull() && params.getSculptType() == LL_SCULPT_TYPE_NONE)
{
+ generate();
createVolumeFaces();
}
}