Disable updateTextures entirely for non-visible avatars (culled ones still need updating tho.)

This commit is contained in:
Shyotl
2011-10-08 03:06:41 -05:00
parent 01e10b5087
commit d9d3ff0057

View File

@@ -5132,7 +5132,12 @@ void LLVOAvatar::updateTextures()
} }
else else
{ {
render_avatar = isVisible() && !mCulled; if(!isVisible())
{
return ;//do not update for invisible avatar.
}
render_avatar = !mCulled; //visible and not culled.
} }
std::vector<bool> layer_baked; std::vector<bool> layer_baked;