summaryrefslogtreecommitdiff
path: root/indra/newview/llface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llface.cpp')
-rw-r--r--indra/newview/llface.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/indra/newview/llface.cpp b/indra/newview/llface.cpp
index a5b0b05603..b0ae13348b 100644
--- a/indra/newview/llface.cpp
+++ b/indra/newview/llface.cpp
@@ -272,12 +272,12 @@ void LLFace::setTexture(LLViewerTexture* tex)
removeAtlas() ;
}
- mTexture = tex ;
-
- if(mTexture.notNull())
+ if(tex)
{
- mTexture->addFace(this) ;
- }
+ tex->addFace(this) ;
+ }
+
+ mTexture = tex ;
}
void LLFace::switchTexture(LLViewerTexture* new_texture)