ParcelWL: Apply new settings without delay on TP
parent
ddcefd4d45
commit
37363787af
|
|
@ -93,6 +93,13 @@ void KCWindlightInterface::ParcelChange()
|
|||
|
||||
mEventTimer.reset();
|
||||
mEventTimer.start();
|
||||
|
||||
// Apply new WL settings instantly on TP
|
||||
if (mTPing)
|
||||
{
|
||||
mTPing = false;
|
||||
tick();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue