From e3333361557638d27ba4d717201dd080b0850aa5 Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Mon, 28 Sep 2009 22:19:21 -0700 Subject: Fixed Advanced Sky only toggling once --- linden/indra/newview/llfloaterwindlight.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'linden') diff --git a/linden/indra/newview/llfloaterwindlight.cpp b/linden/indra/newview/llfloaterwindlight.cpp index 3cbcab1..71e81fa 100644 --- a/linden/indra/newview/llfloaterwindlight.cpp +++ b/linden/indra/newview/llfloaterwindlight.cpp @@ -476,12 +476,17 @@ void LLFloaterWindLight::show() // comment in if you want the menu to rebuild each time //LLUICtrlFactory::getInstance()->buildFloater(windLight, "floater_windlight_options.xml"); //windLight->initCallbacks(); - - windLight->open(); } else { - sWindLight->close(); + if (sWindLight->getVisible()) + { + sWindLight->close(); + } + else + { + sWindLight->open(); + } } } -- cgit v1.1