diff options
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 5c70590..9dcf410 100644 --- a/linden/indra/newview/llpanelobject.cpp +++ b/linden/indra/newview/llpanelobject.cpp | |||
@@ -75,6 +75,10 @@ | |||
75 | 75 | ||
76 | #include "lldrawpool.h" | 76 | #include "lldrawpool.h" |
77 | 77 | ||
78 | // [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | ||
79 | #include "llvoavatar.h" | ||
80 | // [/RLVa:KB] | ||
81 | |||
78 | // | 82 | // |
79 | // Constants | 83 | // Constants |
80 | // | 84 | // |
@@ -385,6 +389,15 @@ void LLPanelObject::getState( ) | |||
385 | enable_rotate = FALSE; | 389 | enable_rotate = FALSE; |
386 | } | 390 | } |
387 | 391 | ||
392 | // [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | ||
393 | if ( (rlv_handler_t::isEnabled()) && ((gRlvHandler.hasBehaviour(RLV_BHVR_UNSIT)) || (gRlvHandler.hasBehaviour(RLV_BHVR_SITTP))) ) | ||
394 | { | ||
395 | LLVOAvatar* pAvatar = gAgent.getAvatarObject(); | ||
396 | if ( (pAvatar) && (pAvatar->mIsSitting) && (pAvatar->getRoot() == objectp->getRootEdit()) ) | ||
397 | enable_move = enable_scale = enable_rotate = FALSE; | ||
398 | } | ||
399 | // [/RLVa:KB] | ||
400 | |||
388 | LLVector3 vec; | 401 | LLVector3 vec; |
389 | if (enable_move) | 402 | if (enable_move) |
390 | { | 403 | { |
@@ -618,6 +631,10 @@ void LLPanelObject::getState( ) | |||
618 | } | 631 | } |
619 | else | 632 | else |
620 | { | 633 | { |
634 | mCtrlScaleX->setMaxValue(LLManipScale::getMaxPrimSize()); | ||
635 | mCtrlScaleY->setMaxValue(LLManipScale::getMaxPrimSize()); | ||
636 | mCtrlScaleZ->setMaxValue(LLManipScale::getMaxPrimSize()); | ||
637 | |||
621 | // Only allowed to change these parameters for objects | 638 | // Only allowed to change these parameters for objects |
622 | // that you have permissions on AND are not attachments. | 639 | // that you have permissions on AND are not attachments. |
623 | enabled = root_objectp->permModify(); | 640 | enabled = root_objectp->permModify(); |