ParcelWL: Apply new settings without delay on TP

meow-7.2.2
Kadah 2011-03-09 21:12:42 -08:00
parent ddcefd4d45
commit 37363787af
3 changed files with 13 additions and 0 deletions

View File

@ -93,6 +93,13 @@ void KCWindlightInterface::ParcelChange()
mEventTimer.reset();
mEventTimer.start();
// Apply new WL settings instantly on TP
if (mTPing)
{
mTPing = false;
tick();
}
}
}

View File

@ -46,6 +46,7 @@ public:
bool ParsePacelForWLSettings(const std::string& desc, LLSD& settings);
void onClickWLStatusButton();
bool WLset; //display the status bar icon?
void setTPing(bool value) { mTPing = value; }
private:
bool callbackParcelWL(const LLSD& notification, const LLSD& response);
@ -65,4 +66,5 @@ protected:
LLSD mCurrentSettings;
S32 mLastZ;
bool mWeChangedIt; //dont reset anything if we didnt do it
bool mTPing; //agent just TP'd (hack, might be better way)
};

View File

@ -80,6 +80,7 @@
#include "rlvhandler.h"
#include "rlvui.h"
// [/RLVa:KB]
+#include "kcwlinterface.h"
using namespace LLVOAvatarDefines;
@ -3356,6 +3357,9 @@ bool LLAgent::teleportCore(bool is_local)
//release geometry from old location
gPipeline.resetVertexBuffers();
// bit of a hack -KC
KCWindlightInterface::instance().setTPing(true);
}
make_ui_sound("UISndTeleportOut");