diff options
author | Dave Parks <davep@lindenlab.com> | 2009-11-18 18:10:48 -0600 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2009-11-18 18:10:48 -0600 |
commit | 81bfdcbfae4f203e60f00794966383b01475995b (patch) | |
tree | 6d2b77b12b062849d001d12a8032325b7c424796 /indra/newview | |
parent | a056423e62ad8525919526abb95e8b23f0681064 (diff) |
Tetrahedron displays in place of unloaded mesh. Still has some LOD issues.
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/pipeline.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index c262e94ff4..3410ad6559 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -8976,6 +8976,9 @@ void LLPipeline::loadMesh(LLVOVolume* vobj, LLUUID mesh_id, S32 detail) group->derefLOD(lod); } } + + //nothing found, so make a tetrahedron + volume->makeTetrahedron(); } } @@ -9102,7 +9105,11 @@ void LLPipeline::notifyLoadedMeshes() if (valid) { - mesh->mTargetVolume->copyVolumeFaces(mesh->mVolume); + if (mesh->mVolume->getNumVolumeFaces() > 0) + { + mesh->mTargetVolume->copyVolumeFaces(mesh->mVolume); + } + for (std::set<LLUUID>::iterator vobj_iter = obj_iter->second.begin(); vobj_iter != obj_iter->second.end(); ++vobj_iter) { LLVOVolume* vobj = (LLVOVolume*) gObjectList.findObject(*vobj_iter); |