aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lightshare.h
diff options
context:
space:
mode:
authorJacek Antonelli2010-07-29 04:13:45 -0500
committerJacek Antonelli2010-08-01 00:30:59 -0500
commit8314920310fa11d5974d733da6817176f7cc9b93 (patch)
treed7a415c2e992d4650966f56c722496106e28b4b8 /linden/indra/newview/lightshare.h
parentNo longer reset Windlight settings after teleport. (diff)
downloadmeta-impy-8314920310fa11d5974d733da6817176f7cc9b93.zip
meta-impy-8314920310fa11d5974d733da6817176f7cc9b93.tar.gz
meta-impy-8314920310fa11d5974d733da6817176f7cc9b93.tar.bz2
meta-impy-8314920310fa11d5974d733da6817176f7cc9b93.tar.xz
Don't spam user with ConfirmLightShare notifications.
Now only one notification is created, but the class remembers the most recent settings and discards the old ones.
Diffstat (limited to 'linden/indra/newview/lightshare.h')
-rw-r--r--linden/indra/newview/lightshare.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/linden/indra/newview/lightshare.h b/linden/indra/newview/lightshare.h
index 2bf95c6..cbc03ad 100644
--- a/linden/indra/newview/lightshare.h
+++ b/linden/indra/newview/lightshare.h
@@ -49,14 +49,15 @@ class WindlightMessage
49 ~WindlightMessage(); 49 ~WindlightMessage();
50 static void processWindlight(LLMessageSystem* msg, void**); 50 static void processWindlight(LLMessageSystem* msg, void**);
51 static bool applyCallback(const LLSD& notification, 51 static bool applyCallback(const LLSD& notification,
52 const LLSD& response, 52 const LLSD& response);
53 WindlightMessage* wl);
54 53
55 bool apply(); 54 bool apply();
56 bool isValid(); 55 bool isValid();
57 56
58 private: 57 private:
59 58
59 static WindlightMessage* sMostRecent;
60
60 Meta7WindlightPacket* mPacket; 61 Meta7WindlightPacket* mPacket;
61 LLWaterParamSet* mWater; 62 LLWaterParamSet* mWater;
62 LLWLParamSet* mSky; 63 LLWLParamSet* mSky;