This commit is contained in:
Shyotl
2011-09-02 06:56:32 -05:00
parent 443d4e9f56
commit 3c4f012480
2 changed files with 9 additions and 3 deletions

View File

@@ -2414,7 +2414,7 @@ bool LLVolume::unpackVolumeFaces(std::istream& is, S32 size)
LLSD mdl;
if (!unzip_llsd(mdl, is, size))
{
llwarns << "not a valid mesh asset!" << llendl;
LL_DEBUGS("MeshStreaming") << "Failed to unzip LLSD blob for LoD, will probably fetch from sim again." << llendl;
return false;
}
@@ -2740,9 +2740,10 @@ void LLVolume::cacheOptimize()
S32 LLVolume::getNumFaces() const
{
return (S32)mProfilep->mFaces.size();
return mIsMeshAssetLoaded ? getNumVolumeFaces() : (S32)mProfilep->mFaces.size();
}
void LLVolume::createVolumeFaces()
{
LLMemType m1(LLMemType::MTYPE_VOLUME);