diff options
| author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-08-10 14:02:21 +0100 |
|---|---|---|
| committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-08-10 14:02:21 +0100 |
| commit | c890ca021a49e52095e9a8de7db528e48c3da205 (patch) | |
| tree | 1e5227e803980b3df83a77e0d0c39623e0fa2069 /indra/newview/llvoavatar.cpp | |
| parent | 60b12a24d4a6061a3fe22a433cb8852002a8e857 (diff) | |
| parent | 20bdbd487e9c64ce553ad68d467b1100342fe6a1 (diff) | |
merge from PE's viewer-trunk
Diffstat (limited to 'indra/newview/llvoavatar.cpp')
| -rw-r--r-- | indra/newview/llvoavatar.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index 298ac28ca8..6392aad248 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -5642,6 +5642,15 @@ BOOL LLVOAvatar::canAttachMoreObjects() const } //----------------------------------------------------------------------------- +// canAttachMoreObjects() +// Returns true if we can attach <n> more objects. +//----------------------------------------------------------------------------- +BOOL LLVOAvatar::canAttachMoreObjects(U32 n) const +{ + return (getNumAttachments() + n) <= MAX_AGENT_ATTACHMENTS; +} + +//----------------------------------------------------------------------------- // lazyAttach() //----------------------------------------------------------------------------- void LLVOAvatar::lazyAttach() |
