diff options
author | Dave Parks <davep@lindenlab.com> | 2009-11-30 17:02:38 -0600 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2009-11-30 17:02:38 -0600 |
commit | f039fa98efedc91965338ef53624279f99914205 (patch) | |
tree | ff44f8bfdb3b2ff585cefdeb672d5e2f55933b4c /indra/llmath | |
parent | 77c828a47b3d33ea3c8b4de4f76904b613067f35 (diff) |
Fix for silly crash due to LLPrimitive having 0 texture entries.
Diffstat (limited to 'indra/llmath')
-rw-r--r-- | indra/llmath/llvolume.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/llmath/llvolume.cpp b/indra/llmath/llvolume.cpp index 1d36da7f52..858bd9edea 100644 --- a/indra/llmath/llvolume.cpp +++ b/indra/llmath/llvolume.cpp @@ -1692,9 +1692,10 @@ LLVolume::LLVolume(const LLVolumeParams ¶ms, const F32 detail, const BOOL ge mGenerateSingleFace = generate_single_face; + generate(); + if (mParams.getSculptID().isNull() && params.getSculptType() == LL_SCULPT_TYPE_NONE) { - generate(); createVolumeFaces(); } } |