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/llviewermenu.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/llviewermenu.cpp | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp index 0aec752..2e72a2a 100644 --- a/linden/indra/newview/llviewermenu.cpp +++ b/linden/indra/newview/llviewermenu.cpp | |||
@@ -224,6 +224,8 @@ | |||
224 | #include "jcfloater_animation_list.h" | 224 | #include "jcfloater_animation_list.h" |
225 | #include "llfloaterassetbrowser.h" | 225 | #include "llfloaterassetbrowser.h" |
226 | 226 | ||
227 | #include "hippoLimits.h" | ||
228 | |||
227 | using namespace LLVOAvatarDefines; | 229 | using namespace LLVOAvatarDefines; |
228 | void init_client_menu(LLMenuGL* menu); | 230 | void init_client_menu(LLMenuGL* menu); |
229 | void init_server_menu(LLMenuGL* menu); | 231 | void init_server_menu(LLMenuGL* menu); |
@@ -4668,15 +4670,18 @@ class LLToolsLink : public view_listener_t | |||
4668 | return true; | 4670 | return true; |
4669 | } | 4671 | } |
4670 | 4672 | ||
4671 | S32 object_count = LLSelectMgr::getInstance()->getSelection()->getObjectCount(); | 4673 | S32 max_linked_prims = gHippoLimits->getMaxLinkedPrims(); |
4672 | if (object_count > MAX_CHILDREN_PER_TASK + 1) | 4674 | if (max_linked_prims > -1) |
4673 | { | 4675 | { |
4674 | LLSD args; | 4676 | S32 object_count = LLSelectMgr::getInstance()->getSelection()->getObjectCount(); |
4675 | args["COUNT"] = llformat("%d", object_count); | 4677 | if (object_count > max_linked_prims + 1) |
4676 | int max = MAX_CHILDREN_PER_TASK+1; | 4678 | { |
4677 | args["MAX"] = llformat("%d", max); | 4679 | LLSD args; |
4678 | LLNotifications::instance().add("UnableToLinkObjects", args); | 4680 | args["COUNT"] = llformat("%d", object_count); |
4679 | return true; | 4681 | args["MAX"] = llformat("%d", max_linked_prims+1); |
4682 | LLNotifications::instance().add("UnableToLinkObjects", args); | ||
4683 | return true; | ||
4684 | } | ||
4680 | } | 4685 | } |
4681 | 4686 | ||
4682 | if(LLSelectMgr::getInstance()->getSelection()->getRootObjectCount() < 2) | 4687 | if(LLSelectMgr::getInstance()->getSelection()->getRootObjectCount() < 2) |