[RLVa] gRlvHandler.canStand --> RlvActions::canStand
This commit is contained in:
@@ -207,7 +207,8 @@ void init_debug_rendering_menu(LLMenuGL* menu);
|
||||
void init_debug_ui_menu(LLMenuGL* menu);
|
||||
void init_debug_xui_menu(LLMenuGL* menu);
|
||||
void init_debug_avatar_menu(LLMenuGL* menu);
|
||||
// [RLVa:KB]
|
||||
// [RLVa:KB] - Checked: 2011-05-22 (RLVa-1.3.1a)
|
||||
#include "rlvactions.h"
|
||||
#include "rlvhandler.h"
|
||||
#include "rlvfloaters.h"
|
||||
#include "rlvlocks.h"
|
||||
@@ -3974,7 +3975,7 @@ class LLLandSit : public view_listener_t
|
||||
bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
|
||||
{
|
||||
// [RLVa:KB] - Checked: 2010-09-28 (RLVa-1.2.1f) | Modified: RLVa-1.2.1f
|
||||
if ( (rlv_handler_t::isEnabled()) && ((!gRlvHandler.canStand()) || (gRlvHandler.hasBehaviour(RLV_BHVR_SIT))) )
|
||||
if ( (rlv_handler_t::isEnabled()) && ((!RlvActions::canStand()) || (gRlvHandler.hasBehaviour(RLV_BHVR_SIT))) )
|
||||
return true;
|
||||
// [/RLVa:KB]
|
||||
|
||||
@@ -4670,7 +4671,7 @@ void handle_take_copy()
|
||||
if (LLSelectMgr::getInstance()->getSelection()->isEmpty()) return;
|
||||
|
||||
// [RLVa:KB] - Checked: 2010-03-07 (RLVa-1.2.0c) | Modified: RLVa-1.2.0a
|
||||
if ( (rlv_handler_t::isEnabled()) && (!gRlvHandler.canStand()) )
|
||||
if ( (rlv_handler_t::isEnabled()) && (!RlvActions::canStand()) )
|
||||
{
|
||||
// Allow only if the avie isn't sitting on any of the selected objects
|
||||
LLObjectSelectionHandle hSel = LLSelectMgr::getInstance()->getSelection();
|
||||
@@ -6279,7 +6280,7 @@ bool enable_object_stand_up()
|
||||
// 'Object Stand Up' menu item is enabled when agent is sitting on selection
|
||||
// return sitting_on_selection();
|
||||
// [RLVa:KB] - Checked: 2010-07-24 (RLVa-1.2.0g) | Added: RLVa-1.2.0g
|
||||
return sitting_on_selection() && ( (!rlv_handler_t::isEnabled()) || (gRlvHandler.canStand()) );
|
||||
return sitting_on_selection() && ( (!rlv_handler_t::isEnabled()) || (RlvActions::canStand()) );
|
||||
// [/RLVa:KB]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user