summaryrefslogtreecommitdiff
path: root/indra/llmath
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2009-11-30 17:02:38 -0600
committerDave Parks <davep@lindenlab.com>2009-11-30 17:02:38 -0600
commitf039fa98efedc91965338ef53624279f99914205 (patch)
treeff44f8bfdb3b2ff585cefdeb672d5e2f55933b4c /indra/llmath
parent77c828a47b3d33ea3c8b4de4f76904b613067f35 (diff)
Fix for silly crash due to LLPrimitive having 0 texture entries.
Diffstat (limited to 'indra/llmath')
-rw-r--r--indra/llmath/llvolume.cpp3
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 &params, const F32 detail, const BOOL ge
mGenerateSingleFace = generate_single_face;
+ generate();
+
if (mParams.getSculptID().isNull() && params.getSculptType() == LL_SCULPT_TYPE_NONE)
{
- generate();
createVolumeFaces();
}
}