diff options
author | Armin Weatherwax | 2010-03-29 14:11:34 +0200 |
---|---|---|
committer | Armin Weatherwax | 2010-04-12 17:11:05 +0200 |
commit | 5ac51f73e29ffa561b0dae87a06b6d5c1bd0e32e (patch) | |
tree | 82a152f5bfc4ec4160793c5e28cbaa0815976e1b /linden/indra | |
parent | disable voice (for the session) if binary not found (diff) | |
download | meta-impy-5ac51f73e29ffa561b0dae87a06b6d5c1bd0e32e.zip meta-impy-5ac51f73e29ffa561b0dae87a06b6d5c1bd0e32e.tar.gz meta-impy-5ac51f73e29ffa561b0dae87a06b6d5c1bd0e32e.tar.bz2 meta-impy-5ac51f73e29ffa561b0dae87a06b6d5c1bd0e32e.tar.xz |
Use Hippogridmanager for OpenSim detection.
Diffstat (limited to 'linden/indra')
-rw-r--r-- | linden/indra/newview/app_settings/settings.xml | 11 | ||||
-rw-r--r-- | linden/indra/newview/llappviewer.cpp | 4 | ||||
-rw-r--r-- | linden/indra/newview/llmanipscale.cpp | 30 | ||||
-rw-r--r-- | linden/indra/newview/llmanipscale.h | 3 | ||||
-rw-r--r-- | linden/indra/newview/llpanellogin.cpp | 5 | ||||
-rw-r--r-- | linden/indra/newview/llpanelobject.cpp | 8 | ||||
-rw-r--r-- | linden/indra/newview/llstartup.cpp | 16 | ||||
-rw-r--r-- | linden/indra/newview/llviewermessage.cpp | 12 | ||||
-rw-r--r-- | linden/indra/newview/llvoavatar.cpp | 5 |
9 files changed, 35 insertions, 59 deletions
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml index a7592c7..852369f 100644 --- a/linden/indra/newview/app_settings/settings.xml +++ b/linden/indra/newview/app_settings/settings.xml | |||
@@ -5909,17 +5909,6 @@ | |||
5909 | <key>Value</key> | 5909 | <key>Value</key> |
5910 | <integer>0</integer> | 5910 | <integer>0</integer> |
5911 | </map> | 5911 | </map> |
5912 | <key>LoggedIntoOpenSim</key> | ||
5913 | <map> | ||
5914 | <key>Comment</key> | ||
5915 | <string>Check whether or not we're in an OpenSimulator (default 0)</string> | ||
5916 | <key>Persist</key> | ||
5917 | <integer>1</integer> | ||
5918 | <key>Type</key> | ||
5919 | <string>Boolean</string> | ||
5920 | <key>Value</key> | ||
5921 | <integer>0</integer> | ||
5922 | </map> | ||
5923 | <key>LoginAsGod</key> | 5912 | <key>LoginAsGod</key> |
5924 | <map> | 5913 | <map> |
5925 | <key>Comment</key> | 5914 | <key>Comment</key> |
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp index e4cd3af..7aa3a05 100644 --- a/linden/indra/newview/llappviewer.cpp +++ b/linden/indra/newview/llappviewer.cpp | |||
@@ -1899,7 +1899,9 @@ bool LLAppViewer::initConfiguration() | |||
1899 | gHippoGridManager = new HippoGridManager(); | 1899 | gHippoGridManager = new HippoGridManager(); |
1900 | gHippoGridManager->init(); | 1900 | gHippoGridManager->init(); |
1901 | } | 1901 | } |
1902 | 1902 | if (!gHippoLimits) { | |
1903 | gHippoLimits = new HippoLimits(); | ||
1904 | } | ||
1903 | 1905 | ||
1904 | //initGridChoice(); | 1906 | //initGridChoice(); |
1905 | 1907 | ||
diff --git a/linden/indra/newview/llmanipscale.cpp b/linden/indra/newview/llmanipscale.cpp index 65f99ef..969ee43 100644 --- a/linden/indra/newview/llmanipscale.cpp +++ b/linden/indra/newview/llmanipscale.cpp | |||
@@ -63,6 +63,8 @@ | |||
63 | #include "v2math.h" | 63 | #include "v2math.h" |
64 | #include "llvoavatar.h" | 64 | #include "llvoavatar.h" |
65 | 65 | ||
66 | #include "hippoLimits.h" | ||
67 | |||
66 | 68 | ||
67 | const F32 MAX_MANIP_SELECT_DISTANCE_SQUARED = 11.f * 11.f; | 69 | const F32 MAX_MANIP_SELECT_DISTANCE_SQUARED = 11.f * 11.f; |
68 | const F32 SNAP_GUIDE_SCREEN_OFFSET = 0.05f; | 70 | const F32 SNAP_GUIDE_SCREEN_OFFSET = 0.05f; |
@@ -70,8 +72,6 @@ const F32 SNAP_GUIDE_SCREEN_LENGTH = 0.7f; | |||
70 | const F32 SELECTED_MANIPULATOR_SCALE = 1.2f; | 72 | const F32 SELECTED_MANIPULATOR_SCALE = 1.2f; |
71 | const F32 MANIPULATOR_SCALE_HALF_LIFE = 0.07f; | 73 | const F32 MANIPULATOR_SCALE_HALF_LIFE = 0.07f; |
72 | const S32 NUM_MANIPULATORS = 14; | 74 | const S32 NUM_MANIPULATORS = 14; |
73 | const F32 DEFAULT_LL_MAX_PRIM_SCALE = 10.f; | ||
74 | const F32 DEFAULT_OPENSIM_MAX_PRIM_SCALE = 128.f; | ||
75 | 75 | ||
76 | const LLManip::EManipPart MANIPULATOR_IDS[NUM_MANIPULATORS] = | 76 | const LLManip::EManipPart MANIPULATOR_IDS[NUM_MANIPULATORS] = |
77 | { | 77 | { |
@@ -176,7 +176,6 @@ LLManipScale::LLManipScale( LLToolComposite* composite ) | |||
176 | mScaledBoxHandleSize( 1.f ), | 176 | mScaledBoxHandleSize( 1.f ), |
177 | mLastMouseX( -1 ), | 177 | mLastMouseX( -1 ), |
178 | mLastMouseY( -1 ), | 178 | mLastMouseY( -1 ), |
179 | mMaxPrimSize(0.f), | ||
180 | mSendUpdateOnMouseUp( FALSE ), | 179 | mSendUpdateOnMouseUp( FALSE ), |
181 | mLastUpdateFlags( 0 ), | 180 | mLastUpdateFlags( 0 ), |
182 | mScaleSnapUnit1(1.f), | 181 | mScaleSnapUnit1(1.f), |
@@ -205,7 +204,6 @@ void LLManipScale::render() | |||
205 | LLGLDepthTest gls_depth(GL_TRUE); | 204 | LLGLDepthTest gls_depth(GL_TRUE); |
206 | LLGLEnable gl_blend(GL_BLEND); | 205 | LLGLEnable gl_blend(GL_BLEND); |
207 | LLGLEnable gls_alpha_test(GL_ALPHA_TEST); | 206 | LLGLEnable gls_alpha_test(GL_ALPHA_TEST); |
208 | mMaxPrimSize = gSavedSettings.getBOOL("LoggedIntoOpenSim") ? DEFAULT_OPENSIM_MAX_PRIM_SCALE : DEFAULT_LL_MAX_PRIM_SCALE; | ||
209 | 207 | ||
210 | if( canAffectSelection() ) | 208 | if( canAffectSelection() ) |
211 | { | 209 | { |
@@ -957,8 +955,9 @@ void LLManipScale::dragCorner( S32 x, S32 y ) | |||
957 | mInSnapRegime = FALSE; | 955 | mInSnapRegime = FALSE; |
958 | } | 956 | } |
959 | 957 | ||
960 | F32 max_scale_factor = mMaxPrimSize / MIN_PRIM_SCALE; | 958 | F32 maxScale = gHippoLimits->getMaxPrimScale(); |
961 | F32 min_scale_factor = MIN_PRIM_SCALE / mMaxPrimSize; | 959 | F32 max_scale_factor = maxScale / MIN_PRIM_SCALE; |
960 | F32 min_scale_factor = MIN_PRIM_SCALE / maxScale; | ||
962 | 961 | ||
963 | // find max and min scale factors that will make biggest object hit max absolute scale and smallest object hit min absolute scale | 962 | // find max and min scale factors that will make biggest object hit max absolute scale and smallest object hit min absolute scale |
964 | for (LLObjectSelection::iterator iter = mObjectSelection->begin(); | 963 | for (LLObjectSelection::iterator iter = mObjectSelection->begin(); |
@@ -970,7 +969,7 @@ void LLManipScale::dragCorner( S32 x, S32 y ) | |||
970 | { | 969 | { |
971 | const LLVector3& scale = selectNode->mSavedScale; | 970 | const LLVector3& scale = selectNode->mSavedScale; |
972 | 971 | ||
973 | F32 cur_max_scale_factor = llmin( mMaxPrimSize / scale.mV[VX], mMaxPrimSize / scale.mV[VY], mMaxPrimSize / scale.mV[VZ] ); | 972 | F32 cur_max_scale_factor = llmin( maxScale / scale.mV[VX], maxScale / scale.mV[VY], maxScale / scale.mV[VZ] ); |
974 | max_scale_factor = llmin( max_scale_factor, cur_max_scale_factor ); | 973 | max_scale_factor = llmin( max_scale_factor, cur_max_scale_factor ); |
975 | 974 | ||
976 | F32 cur_min_scale_factor = llmax( MIN_PRIM_SCALE / scale.mV[VX], MIN_PRIM_SCALE / scale.mV[VY], MIN_PRIM_SCALE / scale.mV[VZ] ); | 975 | F32 cur_min_scale_factor = llmax( MIN_PRIM_SCALE / scale.mV[VX], MIN_PRIM_SCALE / scale.mV[VY], MIN_PRIM_SCALE / scale.mV[VZ] ); |
@@ -1267,7 +1266,8 @@ void LLManipScale::stretchFace( const LLVector3& drag_start_agent, const LLVecto | |||
1267 | 1266 | ||
1268 | F32 denom = axis * dir_local; | 1267 | F32 denom = axis * dir_local; |
1269 | F32 desired_delta_size = is_approx_zero(denom) ? 0.f : (delta_local_mag / denom); // in meters | 1268 | F32 desired_delta_size = is_approx_zero(denom) ? 0.f : (delta_local_mag / denom); // in meters |
1270 | F32 desired_scale = llclamp(selectNode->mSavedScale.mV[axis_index] + desired_delta_size, MIN_PRIM_SCALE, mMaxPrimSize); | 1269 | F32 desired_scale = llclamp(selectNode->mSavedScale.mV[axis_index] + desired_delta_size, MIN_PRIM_SCALE, |
1270 | gHippoLimits->getMaxPrimScale()); | ||
1271 | // propagate scale constraint back to position offset | 1271 | // propagate scale constraint back to position offset |
1272 | desired_delta_size = desired_scale - selectNode->mSavedScale.mV[axis_index]; // propagate constraint back to position | 1272 | desired_delta_size = desired_scale - selectNode->mSavedScale.mV[axis_index]; // propagate constraint back to position |
1273 | 1273 | ||
@@ -1967,7 +1967,7 @@ F32 LLManipScale::partToMaxScale( S32 part, const LLBBox &bbox ) const | |||
1967 | max_extent = bbox_extents.mV[i]; | 1967 | max_extent = bbox_extents.mV[i]; |
1968 | } | 1968 | } |
1969 | } | 1969 | } |
1970 | max_scale_factor = bbox_extents.magVec() * mMaxPrimSize / max_extent; | 1970 | max_scale_factor = bbox_extents.magVec() * gHippoLimits->getMaxPrimScale() / max_extent; |
1971 | 1971 | ||
1972 | if (getUniform()) | 1972 | if (getUniform()) |
1973 | { | 1973 | { |
@@ -1982,7 +1982,7 @@ F32 LLManipScale::partToMinScale( S32 part, const LLBBox &bbox ) const | |||
1982 | { | 1982 | { |
1983 | LLVector3 bbox_extents = unitVectorToLocalBBoxExtent( partToUnitVector( part ), bbox ); | 1983 | LLVector3 bbox_extents = unitVectorToLocalBBoxExtent( partToUnitVector( part ), bbox ); |
1984 | bbox_extents.abs(); | 1984 | bbox_extents.abs(); |
1985 | F32 min_extent = mMaxPrimSize; | 1985 | F32 min_extent = gHippoLimits->getMaxPrimScale(); |
1986 | for (U32 i = VX; i <= VZ; i++) | 1986 | for (U32 i = VX; i <= VZ; i++) |
1987 | { | 1987 | { |
1988 | if (bbox_extents.mV[i] > 0.f && bbox_extents.mV[i] < min_extent) | 1988 | if (bbox_extents.mV[i] > 0.f && bbox_extents.mV[i] < min_extent) |
@@ -2057,13 +2057,3 @@ BOOL LLManipScale::canAffectSelection() | |||
2057 | } | 2057 | } |
2058 | return can_scale; | 2058 | return can_scale; |
2059 | } | 2059 | } |
2060 | |||
2061 | //static | ||
2062 | F32 LLManipScale::getMaxPrimSize() | ||
2063 | { | ||
2064 | if (gSavedSettings.getBOOL("LoggedIntoOpenSim")) | ||
2065 | { | ||
2066 | return DEFAULT_OPENSIM_MAX_PRIM_SCALE; | ||
2067 | } | ||
2068 | return DEFAULT_LL_MAX_PRIM_SCALE; | ||
2069 | } | ||
diff --git a/linden/indra/newview/llmanipscale.h b/linden/indra/newview/llmanipscale.h index c6545fd..1de0459 100644 --- a/linden/indra/newview/llmanipscale.h +++ b/linden/indra/newview/llmanipscale.h | |||
@@ -89,8 +89,6 @@ public: | |||
89 | static void setShowAxes( BOOL b ); | 89 | static void setShowAxes( BOOL b ); |
90 | static BOOL getShowAxes(); | 90 | static BOOL getShowAxes(); |
91 | 91 | ||
92 | static F32 getMaxPrimSize(); | ||
93 | |||
94 | private: | 92 | private: |
95 | void renderCorners( const LLBBox& local_bbox ); | 93 | void renderCorners( const LLBBox& local_bbox ); |
96 | void renderFaces( const LLBBox& local_bbox ); | 94 | void renderFaces( const LLBBox& local_bbox ); |
@@ -168,7 +166,6 @@ private: | |||
168 | F32 mScaleSnapValue; | 166 | F32 mScaleSnapValue; |
169 | BOOL mInSnapRegime; | 167 | BOOL mInSnapRegime; |
170 | F32* mManipulatorScales; | 168 | F32* mManipulatorScales; |
171 | F32 mMaxPrimSize; | ||
172 | }; | 169 | }; |
173 | 170 | ||
174 | #endif // LL_MANIPSCALE_H | 171 | #endif // LL_MANIPSCALE_H |
diff --git a/linden/indra/newview/llpanellogin.cpp b/linden/indra/newview/llpanellogin.cpp index 64a8a1f..49b9761 100644 --- a/linden/indra/newview/llpanellogin.cpp +++ b/linden/indra/newview/llpanellogin.cpp | |||
@@ -37,6 +37,8 @@ | |||
37 | #include "llpanelgeneral.h" | 37 | #include "llpanelgeneral.h" |
38 | 38 | ||
39 | #include "hippoGridManager.h" | 39 | #include "hippoGridManager.h" |
40 | #include "hippoLimits.h" | ||
41 | |||
40 | #include "floaterlogin.h" | 42 | #include "floaterlogin.h" |
41 | 43 | ||
42 | #include "indra_constants.h" // for key and mask constants | 44 | #include "indra_constants.h" // for key and mask constants |
@@ -1099,7 +1101,8 @@ void LLPanelLogin::onSelectServer(LLUICtrl* ctrl, void*) | |||
1099 | // //childSetText("gridname", gridInfo->getGridName()); | 1101 | // //childSetText("gridname", gridInfo->getGridName()); |
1100 | // LLPanelLogin::setFields( gridInfo->getFirstName(), gridInfo->getLastName(), gridInfo->getAvatarPassword(), 1 ); | 1102 | // LLPanelLogin::setFields( gridInfo->getFirstName(), gridInfo->getLastName(), gridInfo->getAvatarPassword(), 1 ); |
1101 | // } | 1103 | // } |
1102 | 1104 | if (mCurGrid == gHippoGridManager->getConnectedGrid()->getGridNick()) | |
1105 | gHippoLimits->setLimits(); | ||
1103 | 1106 | ||
1104 | llwarns << "current grid = " << mCurGrid << llendl; | 1107 | llwarns << "current grid = " << mCurGrid << llendl; |
1105 | 1108 | ||
diff --git a/linden/indra/newview/llpanelobject.cpp b/linden/indra/newview/llpanelobject.cpp index 40dc211..bcbd076 100644 --- a/linden/indra/newview/llpanelobject.cpp +++ b/linden/indra/newview/llpanelobject.cpp | |||
@@ -79,7 +79,7 @@ | |||
79 | // [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | 79 | // [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) |
80 | #include "llvoavatar.h" | 80 | #include "llvoavatar.h" |
81 | // [/RLVa:KB] | 81 | // [/RLVa:KB] |
82 | 82 | #include "hippoLimits.h" | |
83 | // | 83 | // |
84 | // Constants | 84 | // Constants |
85 | // | 85 | // |
@@ -632,9 +632,9 @@ void LLPanelObject::getState( ) | |||
632 | } | 632 | } |
633 | else | 633 | else |
634 | { | 634 | { |
635 | mCtrlScaleX->setMaxValue(LLManipScale::getMaxPrimSize()); | 635 | mCtrlScaleX->setMaxValue(gHippoLimits->getMaxPrimScale()); |
636 | mCtrlScaleY->setMaxValue(LLManipScale::getMaxPrimSize()); | 636 | mCtrlScaleY->setMaxValue(gHippoLimits->getMaxPrimScale()); |
637 | mCtrlScaleZ->setMaxValue(LLManipScale::getMaxPrimSize()); | 637 | mCtrlScaleZ->setMaxValue(gHippoLimits->getMaxPrimScale()); |
638 | 638 | ||
639 | // Only allowed to change these parameters for objects | 639 | // Only allowed to change these parameters for objects |
640 | // that you have permissions on AND are not attachments. | 640 | // that you have permissions on AND are not attachments. |
diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp index 993e6e2..3698ecb 100644 --- a/linden/indra/newview/llstartup.cpp +++ b/linden/indra/newview/llstartup.cpp | |||
@@ -885,6 +885,7 @@ bool idle_startup() | |||
885 | } | 885 | } |
886 | 886 | ||
887 | gHippoGridManager->setCurrentGridAsConnected(); | 887 | gHippoGridManager->setCurrentGridAsConnected(); |
888 | gHippoLimits->setLimits(); | ||
888 | // create necessary directories | 889 | // create necessary directories |
889 | // *FIX: these mkdir's should error check | 890 | // *FIX: these mkdir's should error check |
890 | gDirUtilp->setLindenUserDir(gHippoGridManager->getCurrentGridNick(), firstname, lastname); | 891 | gDirUtilp->setLindenUserDir(gHippoGridManager->getCurrentGridNick(), firstname, lastname); |
@@ -1650,13 +1651,14 @@ bool idle_startup() | |||
1650 | if (!tmp.empty()) gHippoGridManager->getConnectedGrid()->setPasswordUrl(tmp); | 1651 | if (!tmp.empty()) gHippoGridManager->getConnectedGrid()->setPasswordUrl(tmp); |
1651 | tmp = LLUserAuth::getInstance()->getResponse("search"); | 1652 | tmp = LLUserAuth::getInstance()->getResponse("search"); |
1652 | if (!tmp.empty()) gHippoGridManager->getConnectedGrid()->setSearchUrl(tmp); | 1653 | if (!tmp.empty()) gHippoGridManager->getConnectedGrid()->setSearchUrl(tmp); |
1653 | tmp = LLUserAuth::getInstance()->getResponse("currency"); | 1654 | tmp = LLUserAuth::getInstance()->getResponse("currency"); |
1654 | if (!tmp.empty()) gHippoGridManager->getConnectedGrid()->setCurrencySymbol(tmp); | 1655 | if (!tmp.empty()) gHippoGridManager->getConnectedGrid()->setCurrencySymbol(tmp); |
1655 | tmp = LLUserAuth::getInstance()->getResponse("real_currency"); | 1656 | tmp = LLUserAuth::getInstance()->getResponse("real_currency"); |
1656 | if (!tmp.empty()) gHippoGridManager->getConnectedGrid()->setRealCurrencySymbol(tmp); | 1657 | if (!tmp.empty()) gHippoGridManager->getConnectedGrid()->setRealCurrencySymbol(tmp); |
1657 | tmp = LLUserAuth::getInstance()->getResponse("directory_fee"); | 1658 | tmp = LLUserAuth::getInstance()->getResponse("directory_fee"); |
1658 | if (!tmp.empty()) gHippoGridManager->getConnectedGrid()->setDirectoryFee(atoi(tmp.c_str())); | 1659 | if (!tmp.empty()) gHippoGridManager->getConnectedGrid()->setDirectoryFee(atoi(tmp.c_str())); |
1659 | gHippoGridManager->saveFile(); | 1660 | gHippoGridManager->saveFile(); |
1661 | gHippoLimits->setLimits(); | ||
1660 | 1662 | ||
1661 | // JC: gesture loading done below, when we have an asset system | 1663 | // JC: gesture loading done below, when we have an asset system |
1662 | // in place. Don't delete/clear user_credentials until then. | 1664 | // in place. Don't delete/clear user_credentials until then. |
diff --git a/linden/indra/newview/llviewermessage.cpp b/linden/indra/newview/llviewermessage.cpp index 8bdbc30..67dc082 100644 --- a/linden/indra/newview/llviewermessage.cpp +++ b/linden/indra/newview/llviewermessage.cpp | |||
@@ -138,6 +138,8 @@ | |||
138 | #include "llviewerdisplay.h" | 138 | #include "llviewerdisplay.h" |
139 | #include "llkeythrottle.h" | 139 | #include "llkeythrottle.h" |
140 | 140 | ||
141 | #include "hippoLimits.h" | ||
142 | |||
141 | #include <boost/tokenizer.hpp> | 143 | #include <boost/tokenizer.hpp> |
142 | 144 | ||
143 | #if LL_WINDOWS // For Windows specific error handler | 145 | #if LL_WINDOWS // For Windows specific error handler |
@@ -3167,15 +3169,7 @@ void process_agent_movement_complete(LLMessageSystem* msg, void**) | |||
3167 | LLSD payload; | 3169 | LLSD payload; |
3168 | payload["message"] = version_channel; | 3170 | payload["message"] = version_channel; |
3169 | LLNotifications::instance().add("ServerVersionChanged", LLSD(), payload); | 3171 | LLNotifications::instance().add("ServerVersionChanged", LLSD(), payload); |
3170 | } | 3172 | gHippoLimits->setLimits(); |
3171 | |||
3172 | if (version_channel.find("OpenSim") != std::string::npos) | ||
3173 | { | ||
3174 | gSavedSettings.setBOOL("LoggedIntoOpenSim", TRUE); | ||
3175 | } | ||
3176 | else | ||
3177 | { | ||
3178 | gSavedSettings.setBOOL("LoggedIntoOpenSim", FALSE); | ||
3179 | } | 3173 | } |
3180 | 3174 | ||
3181 | gLastVersionChannel = version_channel; | 3175 | gLastVersionChannel = version_channel; |
diff --git a/linden/indra/newview/llvoavatar.cpp b/linden/indra/newview/llvoavatar.cpp index 10e2ec7..3055c92 100644 --- a/linden/indra/newview/llvoavatar.cpp +++ b/linden/indra/newview/llvoavatar.cpp | |||
@@ -54,7 +54,6 @@ | |||
54 | #include "llkeyframefallmotion.h" | 54 | #include "llkeyframefallmotion.h" |
55 | #include "llkeyframestandmotion.h" | 55 | #include "llkeyframestandmotion.h" |
56 | #include "llkeyframewalkmotion.h" | 56 | #include "llkeyframewalkmotion.h" |
57 | #include "llmanipscale.h" // getMaxPrimSize() | ||
58 | #include "llmutelist.h" | 57 | #include "llmutelist.h" |
59 | #include "llnotify.h" | 58 | #include "llnotify.h" |
60 | #include "llquantize.h" | 59 | #include "llquantize.h" |
@@ -96,7 +95,7 @@ | |||
96 | // [RLVa:KB] | 95 | // [RLVa:KB] |
97 | #include "llstartup.h" | 96 | #include "llstartup.h" |
98 | // [/RLVa:KB] | 97 | // [/RLVa:KB] |
99 | 98 | #include "hippoLimits.h"// getMaxPrimScale | |
100 | using namespace LLVOAvatarDefines; | 99 | using namespace LLVOAvatarDefines; |
101 | 100 | ||
102 | //----------------------------------------------------------------------------- | 101 | //----------------------------------------------------------------------------- |
@@ -1535,7 +1534,7 @@ void LLVOAvatar::getSpatialExtents(LLVector3& newMin, LLVector3& newMax) | |||
1535 | LLVector3 pos = getRenderPosition(); | 1534 | LLVector3 pos = getRenderPosition(); |
1536 | newMin = pos - buffer; | 1535 | newMin = pos - buffer; |
1537 | newMax = pos + buffer; | 1536 | newMax = pos + buffer; |
1538 | float max_attachment_span = LLManipScale::getMaxPrimSize() * 5.0f; | 1537 | float max_attachment_span = gHippoLimits->getMaxPrimScale() * 5.0f; |
1539 | 1538 | ||
1540 | //stretch bounding box by joint positions | 1539 | //stretch bounding box by joint positions |
1541 | for (polymesh_map_t::iterator i = mMeshes.begin(); i != mMeshes.end(); ++i) | 1540 | for (polymesh_map_t::iterator i = mMeshes.begin(); i != mMeshes.end(); ++i) |