diff options
Diffstat (limited to 'linden/indra/newview/lldrawpooltree.cpp')
-rw-r--r-- | linden/indra/newview/lldrawpooltree.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/linden/indra/newview/lldrawpooltree.cpp b/linden/indra/newview/lldrawpooltree.cpp index 46cd2d5..e4560f2 100644 --- a/linden/indra/newview/lldrawpooltree.cpp +++ b/linden/indra/newview/lldrawpooltree.cpp | |||
@@ -102,7 +102,9 @@ void LLDrawPoolTree::render(S32 pass) | |||
102 | LLGLEnable test(GL_ALPHA_TEST); | 102 | LLGLEnable test(GL_ALPHA_TEST); |
103 | LLOverrideFaceColor color(this, 1.f, 1.f, 1.f, 1.f); | 103 | LLOverrideFaceColor color(this, 1.f, 1.f, 1.f, 1.f); |
104 | 104 | ||
105 | if (gSavedSettings.getBOOL("RenderAnimateTrees")) | 105 | static BOOL* sRenderAnimateTrees = rebind_llcontrol<BOOL>("RenderAnimateTrees", &gSavedSettings, true); |
106 | |||
107 | if (*sRenderAnimateTrees) | ||
106 | { | 108 | { |
107 | renderTree(); | 109 | renderTree(); |
108 | } | 110 | } |
@@ -198,7 +200,9 @@ void LLDrawPoolTree::renderForSelect() | |||
198 | gGL.getTexUnit(0)->setTextureColorBlend(LLTexUnit::TBO_REPLACE, LLTexUnit::TBS_PREV_COLOR); | 200 | gGL.getTexUnit(0)->setTextureColorBlend(LLTexUnit::TBO_REPLACE, LLTexUnit::TBS_PREV_COLOR); |
199 | gGL.getTexUnit(0)->setTextureAlphaBlend(LLTexUnit::TBO_MULT, LLTexUnit::TBS_TEX_ALPHA, LLTexUnit::TBS_VERT_ALPHA); | 201 | gGL.getTexUnit(0)->setTextureAlphaBlend(LLTexUnit::TBO_MULT, LLTexUnit::TBS_TEX_ALPHA, LLTexUnit::TBS_VERT_ALPHA); |
200 | 202 | ||
201 | if (gSavedSettings.getBOOL("RenderAnimateTrees")) | 203 | static BOOL* sRenderAnimateTrees = rebind_llcontrol<BOOL>("RenderAnimateTrees", &gSavedSettings, true); |
204 | |||
205 | if (*sRenderAnimateTrees) | ||
202 | { | 206 | { |
203 | renderTree(TRUE); | 207 | renderTree(TRUE); |
204 | } | 208 | } |