aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lltoolplacer.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-10-18 17:58:27 -0700
committerMcCabe Maxsted2009-10-18 17:58:27 -0700
commite4b0e7c82d670081c071d8a3da31b5ec407b8e07 (patch)
tree9410962bbb582eedbec448139e217f2714050777 /linden/indra/newview/lltoolplacer.cpp
parentStarted 1.3.0 branch (diff)
parentUpdated and added some Linux libs. (diff)
downloadmeta-impy-e4b0e7c82d670081c071d8a3da31b5ec407b8e07.zip
meta-impy-e4b0e7c82d670081c071d8a3da31b5ec407b8e07.tar.gz
meta-impy-e4b0e7c82d670081c071d8a3da31b5ec407b8e07.tar.bz2
meta-impy-e4b0e7c82d670081c071d8a3da31b5ec407b8e07.tar.xz
Merged working branch of 1.2 into LL 1.23 merge
Diffstat (limited to 'linden/indra/newview/lltoolplacer.cpp')
-rw-r--r--linden/indra/newview/lltoolplacer.cpp20
1 files changed, 19 insertions, 1 deletions
diff --git a/linden/indra/newview/lltoolplacer.cpp b/linden/indra/newview/lltoolplacer.cpp
index a053849..84e0203 100644
--- a/linden/indra/newview/lltoolplacer.cpp
+++ b/linden/indra/newview/lltoolplacer.cpp
@@ -125,6 +125,14 @@ BOOL LLToolPlacer::raycastForNewObjPos( S32 x, S32 y, LLViewerObject** hit_obj,
125 return FALSE; 125 return FALSE;
126 } 126 }
127 127
128// [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | Modified: RLVa-0.2.0f
129 // NOTE: don't use surface_pos_global since for prims it will be the center of the prim while we need center + offset
130 if ( (gRlvHandler.hasBehaviour(RLV_BHVR_FARTOUCH)) && (dist_vec_squared(gAgent.getPositionGlobal(), pick.mPosGlobal) > 1.5f * 1.5f) )
131 {
132 return FALSE;
133 }
134// [/RLVa:KB]
135
128 // Find the sim where the surface lives. 136 // Find the sim where the surface lives.
129 LLViewerRegion *regionp = LLWorld::getInstance()->getRegionFromPosGlobal(surface_pos_global); 137 LLViewerRegion *regionp = LLWorld::getInstance()->getRegionFromPosGlobal(surface_pos_global);
130 if (!regionp) 138 if (!regionp)
@@ -256,7 +264,10 @@ BOOL LLToolPlacer::addObject( LLPCode pcode, S32 x, S32 y, U8 use_physics )
256 { 264 {
257 flags |= FLAGS_USE_PHYSICS; 265 flags |= FLAGS_USE_PHYSICS;
258 } 266 }
259 if (create_selected) 267 //if (create_selected)
268// [RLVa:KB] - Checked: 2009-07-04 (RLVa-1.0.0b) | Added: RLVa-1.0.0b
269 if ( (create_selected) && (!gRlvHandler.hasBehaviour(RLV_BHVR_EDIT)) )
270// [/RLVa:KB]
260 { 271 {
261 flags |= FLAGS_CREATE_SELECTED; 272 flags |= FLAGS_CREATE_SELECTED;
262 } 273 }
@@ -514,6 +525,13 @@ BOOL LLToolPlacer::placeObject(S32 x, S32 y, MASK mask)
514{ 525{
515 BOOL added = TRUE; 526 BOOL added = TRUE;
516 527
528// [RLVa:KB] - Checked: 2009-07-05 (RLVa-1.0.0b)
529 if (gRlvHandler.hasBehaviour(RLV_BHVR_REZ))
530 {
531 return TRUE; // Callers seem to expect a "did you handle it?" so we return TRUE rather than FALSE
532 }
533// [/RLVa:KB]
534
517 if (gSavedSettings.getBOOL("CreateToolCopySelection")) 535 if (gSavedSettings.getBOOL("CreateToolCopySelection"))
518 { 536 {
519 added = addDuplicate(x, y); 537 added = addDuplicate(x, y);