diff options
author | Jacek Antonelli | 2009-09-04 01:56:20 -0500 |
---|---|---|
committer | Jacek Antonelli | 2009-09-04 03:39:51 -0500 |
commit | 89a510de10c48ebcf82b98a962e4bf66477dcc93 (patch) | |
tree | d30f79f433badffe36a67fc155e70a0e29dd2dc4 /linden/indra/newview/llpanelobject.cpp | |
parent | Backported 1.23 fix for animation joint assertion crash. (diff) | |
download | meta-impy-89a510de10c48ebcf82b98a962e4bf66477dcc93.zip meta-impy-89a510de10c48ebcf82b98a962e4bf66477dcc93.tar.gz meta-impy-89a510de10c48ebcf82b98a962e4bf66477dcc93.tar.bz2 meta-impy-89a510de10c48ebcf82b98a962e4bf66477dcc93.tar.xz |
Applied Kitty Barnett's RLVa 1.0.1h (Restrained Life) patch.
Made a few non-functional changes to help it apply.
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llpanelobject.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/linden/indra/newview/llpanelobject.cpp b/linden/indra/newview/llpanelobject.cpp index 5c70590..dd71a0e 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 | { |