diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llfloatertools.cpp | 49 |
1 files changed, 28 insertions, 21 deletions
diff --git a/linden/indra/newview/llfloatertools.cpp b/linden/indra/newview/llfloatertools.cpp index 6744faf..2f02f1e 100644 --- a/linden/indra/newview/llfloatertools.cpp +++ b/linden/indra/newview/llfloatertools.cpp | |||
@@ -181,26 +181,23 @@ void* LLFloaterTools::createPanelLandInfo(void* data) | |||
181 | 181 | ||
182 | void LLFloaterTools::updateToolsSizeLimits() | 182 | void LLFloaterTools::updateToolsSizeLimits() |
183 | { | 183 | { |
184 | if (gSavedSettings.getBOOL("DisableMaxBuildConstraints")) | 184 | getChild<LLSpinCtrl>("Scale X")->setMinValue(gHippoLimits->getMinPrimScale()); |
185 | { | 185 | getChild<LLSpinCtrl>("Scale Y")->setMinValue(gHippoLimits->getMinPrimScale()); |
186 | getChild<LLSpinCtrl>("Scale X")->setMaxValue(F32_MAX); | 186 | getChild<LLSpinCtrl>("Scale Z")->setMinValue(gHippoLimits->getMinPrimScale()); |
187 | getChild<LLSpinCtrl>("Scale Y")->setMaxValue(F32_MAX); | ||
188 | getChild<LLSpinCtrl>("Scale Z")->setMaxValue(F32_MAX); | ||
189 | 187 | ||
190 | getChild<LLSpinCtrl>("Pos X")->setMaxValue(F32_MAX); | 188 | getChild<LLSpinCtrl>("Scale X")->setMaxValue(gHippoLimits->getMaxPrimScale()); |
191 | getChild<LLSpinCtrl>("Pos Y")->setMaxValue(F32_MAX); | 189 | getChild<LLSpinCtrl>("Scale Y")->setMaxValue(gHippoLimits->getMaxPrimScale()); |
192 | getChild<LLSpinCtrl>("Pos Z")->setMaxValue(F32_MAX); | 190 | getChild<LLSpinCtrl>("Scale Z")->setMaxValue(gHippoLimits->getMaxPrimScale()); |
193 | } | ||
194 | else | ||
195 | { | ||
196 | getChild<LLSpinCtrl>("Scale X")->setMaxValue(gHippoLimits->getMaxPrimScale()); | ||
197 | getChild<LLSpinCtrl>("Scale Y")->setMaxValue(gHippoLimits->getMaxPrimScale()); | ||
198 | getChild<LLSpinCtrl>("Scale Z")->setMaxValue(gHippoLimits->getMaxPrimScale()); | ||
199 | 191 | ||
200 | getChild<LLSpinCtrl>("Scale X")->setMinValue(gHippoLimits->getMinPrimScale()); | 192 | getChild<LLSpinCtrl>("Pos X")->setMinValue(gHippoLimits->getMinPrimXPos()); |
201 | getChild<LLSpinCtrl>("Scale Y")->setMinValue(gHippoLimits->getMinPrimScale()); | 193 | getChild<LLSpinCtrl>("Pos Y")->setMinValue(gHippoLimits->getMinPrimYPos()); |
202 | getChild<LLSpinCtrl>("Scale Z")->setMinValue(gHippoLimits->getMinPrimScale()); | 194 | getChild<LLSpinCtrl>("Pos Z")->setMinValue(gHippoLimits->getMinPrimZPos()); |
203 | } | 195 | |
196 | getChild<LLSpinCtrl>("Pos X")->setMaxValue(gHippoLimits->getMaxPrimXPos()); | ||
197 | getChild<LLSpinCtrl>("Pos Y")->setMaxValue(gHippoLimits->getMaxPrimYPos()); | ||
198 | getChild<LLSpinCtrl>("Pos Z")->setMaxValue(gHippoLimits->getMaxPrimZPos()); | ||
199 | |||
200 | getChild<LLCheckBoxCtrl>("Physical Checkbox Ctrl")->setEnabled(gHippoLimits->mAllowPhysicalPrims); | ||
204 | } | 201 | } |
205 | 202 | ||
206 | void LLFloaterTools::updateToolsPrecision() | 203 | void LLFloaterTools::updateToolsPrecision() |
@@ -1258,8 +1255,18 @@ void LLFloaterTools::onClickLink(void* data) | |||
1258 | return; | 1255 | return; |
1259 | } | 1256 | } |
1260 | 1257 | ||
1261 | S32 max_linked_prims = gHippoLimits->getMaxLinkedPrims(); | 1258 | S32 max_linked_prims = 0; |
1262 | if (max_linked_prims > -1) | 1259 | if(LLSelectMgr::getInstance()->getSelection()->getPrimaryObject()->usePhysics()) |
1260 | { | ||
1261 | //Physical - use phys prim limit | ||
1262 | max_linked_prims = gHippoLimits->getMaxPhysLinkedPrims(); | ||
1263 | } | ||
1264 | else | ||
1265 | { | ||
1266 | //Non phys limit | ||
1267 | max_linked_prims = gHippoLimits->getMaxLinkedPrims(); | ||
1268 | } | ||
1269 | if (max_linked_prims > -1) //-1 : no limits | ||
1263 | { | 1270 | { |
1264 | S32 object_count = LLSelectMgr::getInstance()->getSelection()->getObjectCount(); | 1271 | S32 object_count = LLSelectMgr::getInstance()->getSelection()->getObjectCount(); |
1265 | if (object_count > max_linked_prims + 1) | 1272 | if (object_count > max_linked_prims + 1) |
@@ -1271,7 +1278,7 @@ void LLFloaterTools::onClickLink(void* data) | |||
1271 | return; | 1278 | return; |
1272 | } | 1279 | } |
1273 | } | 1280 | } |
1274 | 1281 | ||
1275 | if(LLSelectMgr::getInstance()->getSelection()->getRootObjectCount() < 2) | 1282 | if(LLSelectMgr::getInstance()->getSelection()->getRootObjectCount() < 2) |
1276 | { | 1283 | { |
1277 | LLNotifications::instance().add("CannotLinkIncompleteSet"); | 1284 | LLNotifications::instance().add("CannotLinkIncompleteSet"); |