diff options
author | McCabe Maxsted | 2009-10-18 17:58:27 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-10-18 17:58:27 -0700 |
commit | e4b0e7c82d670081c071d8a3da31b5ec407b8e07 (patch) | |
tree | 9410962bbb582eedbec448139e217f2714050777 /linden/indra/newview/llpanelobject.cpp | |
parent | Started 1.3.0 branch (diff) | |
parent | Updated and added some Linux libs. (diff) | |
download | meta-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/llpanelobject.cpp')
-rw-r--r-- | linden/indra/newview/llpanelobject.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/linden/indra/newview/llpanelobject.cpp b/linden/indra/newview/llpanelobject.cpp index b0274e6..270a8ed 100644 --- a/linden/indra/newview/llpanelobject.cpp +++ b/linden/indra/newview/llpanelobject.cpp | |||
@@ -76,6 +76,10 @@ | |||
76 | 76 | ||
77 | #include "lldrawpool.h" | 77 | #include "lldrawpool.h" |
78 | 78 | ||
79 | // [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | ||
80 | #include "llvoavatar.h" | ||
81 | // [/RLVa:KB] | ||
82 | |||
79 | // | 83 | // |
80 | // Constants | 84 | // Constants |
81 | // | 85 | // |
@@ -386,6 +390,15 @@ void LLPanelObject::getState( ) | |||
386 | enable_rotate = FALSE; | 390 | enable_rotate = FALSE; |
387 | } | 391 | } |
388 | 392 | ||
393 | // [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | ||
394 | if ( (rlv_handler_t::isEnabled()) && ((gRlvHandler.hasBehaviour(RLV_BHVR_UNSIT)) || (gRlvHandler.hasBehaviour(RLV_BHVR_SITTP))) ) | ||
395 | { | ||
396 | LLVOAvatar* pAvatar = gAgent.getAvatarObject(); | ||
397 | if ( (pAvatar) && (pAvatar->mIsSitting) && (pAvatar->getRoot() == objectp->getRootEdit()) ) | ||
398 | enable_move = enable_scale = enable_rotate = FALSE; | ||
399 | } | ||
400 | // [/RLVa:KB] | ||
401 | |||
389 | LLVector3 vec; | 402 | LLVector3 vec; |
390 | if (enable_move) | 403 | if (enable_move) |
391 | { | 404 | { |
@@ -619,6 +632,10 @@ void LLPanelObject::getState( ) | |||
619 | } | 632 | } |
620 | else | 633 | else |
621 | { | 634 | { |
635 | mCtrlScaleX->setMaxValue(LLManipScale::getMaxPrimSize()); | ||
636 | mCtrlScaleY->setMaxValue(LLManipScale::getMaxPrimSize()); | ||
637 | mCtrlScaleZ->setMaxValue(LLManipScale::getMaxPrimSize()); | ||
638 | |||
622 | // Only allowed to change these parameters for objects | 639 | // Only allowed to change these parameters for objects |
623 | // that you have permissions on AND are not attachments. | 640 | // that you have permissions on AND are not attachments. |
624 | enabled = root_objectp->permModify(); | 641 | enabled = root_objectp->permModify(); |