diff options
author | Armin Weatherwax | 2010-04-08 20:42:06 +0200 |
---|---|---|
committer | Armin Weatherwax | 2010-04-12 17:11:07 +0200 |
commit | 4a683110f77060889a755fd77c814e79eeb80298 (patch) | |
tree | 3a00e38ac302480aaa6146c584684ab3b1d0df2a /linden/indra/newview/llfloatertools.cpp | |
parent | fix: Bug #239 by reverting commit 187e36f6: invisible Textures on HG (diff) | |
download | meta-impy-4a683110f77060889a755fd77c814e79eeb80298.zip meta-impy-4a683110f77060889a755fd77c814e79eeb80298.tar.gz meta-impy-4a683110f77060889a755fd77c814e79eeb80298.tar.bz2 meta-impy-4a683110f77060889a755fd77c814e79eeb80298.tar.xz |
remove link limits: (take 2) depending on grid.
Seems OSim creates several linksets though.
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llfloatertools.cpp | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/linden/indra/newview/llfloatertools.cpp b/linden/indra/newview/llfloatertools.cpp index 5a7fdff..260872f 100644 --- a/linden/indra/newview/llfloatertools.cpp +++ b/linden/indra/newview/llfloatertools.cpp | |||
@@ -84,6 +84,8 @@ | |||
84 | #include "llvotree.h" | 84 | #include "llvotree.h" |
85 | #include "lluictrlfactory.h" | 85 | #include "lluictrlfactory.h" |
86 | 86 | ||
87 | #include "hippoLimits.h" | ||
88 | |||
87 | // Globals | 89 | // Globals |
88 | LLFloaterTools *gFloaterTools = NULL; | 90 | LLFloaterTools *gFloaterTools = NULL; |
89 | 91 | ||
@@ -1146,18 +1148,21 @@ void LLFloaterTools::onClickLink(void* data) | |||
1146 | LLNotifications::instance().add("UnableToLinkWhileDownloading"); | 1148 | LLNotifications::instance().add("UnableToLinkWhileDownloading"); |
1147 | return; | 1149 | return; |
1148 | } | 1150 | } |
1149 | 1151 | ||
1150 | S32 object_count = LLSelectMgr::getInstance()->getSelection()->getObjectCount(); | 1152 | S32 max_linked_prims = gHippoLimits->getMaxLinkedPrims(); |
1151 | if (object_count > MAX_CHILDREN_PER_TASK + 1) | 1153 | if (max_linked_prims > -1) |
1152 | { | 1154 | { |
1153 | LLSD args; | 1155 | S32 object_count = LLSelectMgr::getInstance()->getSelection()->getObjectCount(); |
1154 | args["COUNT"] = llformat("%d", object_count); | 1156 | if (object_count > max_linked_prims + 1) |
1155 | int max = MAX_CHILDREN_PER_TASK+1; | 1157 | { |
1156 | args["MAX"] = llformat("%d", max); | 1158 | LLSD args; |
1157 | LLNotifications::instance().add("UnableToLinkObjects", args); | 1159 | args["COUNT"] = llformat("%d", object_count); |
1158 | return; | 1160 | args["MAX"] = llformat("%d", max_linked_prims +1); |
1161 | LLNotifications::instance().add("UnableToLinkObjects", args); | ||
1162 | return; | ||
1163 | } | ||
1159 | } | 1164 | } |
1160 | 1165 | ||
1161 | if(LLSelectMgr::getInstance()->getSelection()->getRootObjectCount() < 2) | 1166 | if(LLSelectMgr::getInstance()->getSelection()->getRootObjectCount() < 2) |
1162 | { | 1167 | { |
1163 | LLNotifications::instance().add("CannotLinkIncompleteSet"); | 1168 | LLNotifications::instance().add("CannotLinkIncompleteSet"); |