Merged in RLVa. Viewer broken!
This commit is contained in:
@@ -70,6 +70,10 @@
|
||||
#include "llviewerparcelmgr.h" // always rez
|
||||
// </edit>
|
||||
|
||||
// [RLVa:KB]
|
||||
#include "rlvhandler.h"
|
||||
// [/RLVa:KB]
|
||||
|
||||
const LLVector3 DEFAULT_OBJECT_SCALE(0.5f, 0.5f, 0.5f);
|
||||
|
||||
//static
|
||||
@@ -130,6 +134,14 @@ BOOL LLToolPlacer::raycastForNewObjPos( S32 x, S32 y, LLViewerObject** hit_obj,
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
// [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | Modified: RLVa-0.2.0f
|
||||
// NOTE: don't use surface_pos_global since for prims it will be the center of the prim while we need center + offset
|
||||
if ( (gRlvHandler.hasBehaviour(RLV_BHVR_FARTOUCH)) && (dist_vec_squared(gAgent.getPositionGlobal(), pick.mPosGlobal) > 1.5f * 1.5f) )
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
// [/RLVa:KB]
|
||||
|
||||
// Find the sim where the surface lives.
|
||||
LLViewerRegion *regionp = LLWorld::getInstance()->getRegionFromPosGlobal(surface_pos_global);
|
||||
if (!regionp)
|
||||
@@ -258,7 +270,10 @@ BOOL LLToolPlacer::addObject( LLPCode pcode, S32 x, S32 y, U8 use_physics )
|
||||
{
|
||||
flags |= FLAGS_USE_PHYSICS;
|
||||
}
|
||||
if (create_selected)
|
||||
//if (create_selected)
|
||||
// [RLVa:KB] - Checked: 2009-07-04 (RLVa-1.0.0b) | Added: RLVa-1.0.0b
|
||||
if ( (create_selected) && (!gRlvHandler.hasBehaviour(RLV_BHVR_EDIT)) )
|
||||
// [/RLVa:KB]
|
||||
{
|
||||
flags |= FLAGS_CREATE_SELECTED;
|
||||
}
|
||||
@@ -516,6 +531,13 @@ BOOL LLToolPlacer::placeObject(S32 x, S32 y, MASK mask)
|
||||
{
|
||||
BOOL added = TRUE;
|
||||
|
||||
// [RLVa:KB] - Checked: 2010-01-02 (RLVa-1.1.0l) | Modified: RLVa-1.1.0l
|
||||
if ( (rlv_handler_t::isEnabled()) && ((gRlvHandler.hasBehaviour(RLV_BHVR_REZ)) || (gRlvHandler.hasBehaviour(RLV_BHVR_INTERACT))) )
|
||||
{
|
||||
return TRUE; // Callers seem to expect a "did you handle it?" so we return TRUE rather than FALSE
|
||||
}
|
||||
// [/RLVa:KB]
|
||||
|
||||
if (gSavedSettings.getBOOL("CreateToolCopySelection"))
|
||||
{
|
||||
added = addDuplicate(x, y);
|
||||
|
||||
Reference in New Issue
Block a user