aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llface.cpp')
-rw-r--r--linden/indra/newview/llface.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/linden/indra/newview/llface.cpp b/linden/indra/newview/llface.cpp
index f480d8d..1f1febb 100644
--- a/linden/indra/newview/llface.cpp
+++ b/linden/indra/newview/llface.cpp
@@ -411,7 +411,8 @@ void LLFace::renderForSelect(U32 data_mask)
411 411
412void LLFace::renderSelected(LLImageGL *imagep, const LLColor4& color) 412void LLFace::renderSelected(LLImageGL *imagep, const LLColor4& color)
413{ 413{
414 if(mDrawablep.isNull() || mVertexBuffer.isNull()) 414 if(mDrawablep.isNull() || mVertexBuffer.isNull() || mDrawablep->getSpatialGroup() == NULL ||
415 mDrawablep->getSpatialGroup()->isState(LLSpatialGroup::GEOM_DIRTY))
415 { 416 {
416 return; 417 return;
417 } 418 }