Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
33e0766e
Commit
33e0766e
authored
1 year ago
by
Andrey Lihatskiy
Browse files
Options
Downloads
Patches
Plain Diff
SL-19948 Update estate manager and ban list limits to match new values from simulator
parent
71e7c7c7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/llmessage/llregionflags.h
+3
-2
3 additions, 2 deletions
indra/llmessage/llregionflags.h
indra/newview/llfloaterregioninfo.cpp
+7
-7
7 additions, 7 deletions
indra/newview/llfloaterregioninfo.cpp
with
10 additions
and
9 deletions
indra/llmessage/llregionflags.h
+
3
−
2
View file @
33e0766e
...
...
@@ -171,8 +171,9 @@ const U32 ESTATE_ACCESS_MANAGER_REMOVE = 1U << 9;
const
U32
ESTATE_ACCESS_NO_REPLY
=
1U
<<
10
;
const
U32
ESTATE_ACCESS_FAILED_BAN_ESTATE_MANAGER
=
1U
<<
11
;
const
S32
ESTATE_MAX_MANAGERS
=
15
;
const
S32
ESTATE_MAX_ACCESS_IDS
=
500
;
// max for access, banned
const
S32
ESTATE_MAX_MANAGERS
=
20
;
const
S32
ESTATE_MAX_ACCESS_IDS
=
500
;
// max for access
const
S32
ESTATE_MAX_BANNED_IDS
=
750
;
// max for banned
const
S32
ESTATE_MAX_GROUP_IDS
=
(
S32
)
ESTATE_ACCESS_MAX_ENTRIES_PER_PACKET
;
// 'Sim Wide Delete' flags
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llfloaterregioninfo.cpp
+
7
−
7
View file @
33e0766e
...
...
@@ -2795,7 +2795,7 @@ BOOL LLPanelEstateAccess::postBuild()
if
(
banned_name_list
)
{
banned_name_list
->
setCommitOnSelectionChange
(
TRUE
);
banned_name_list
->
setMaxItemCount
(
ESTATE_MAX_
ACCESS
_IDS
);
banned_name_list
->
setMaxItemCount
(
ESTATE_MAX_
BANNED
_IDS
);
}
getChild
<
LLUICtrl
>
(
"banned_search_input"
)
->
setCommitCallback
(
boost
::
bind
(
&
LLPanelEstateAccess
::
onBannedSearchEdit
,
this
,
_2
));
...
...
@@ -2939,10 +2939,10 @@ void LLPanelEstateAccess::onClickAddBannedAgent()
{
LLCtrlListInterface
*
list
=
childGetListInterface
(
"banned_avatar_name_list"
);
if
(
!
list
)
return
;
if
(
list
->
getItemCount
()
>=
ESTATE_MAX_
ACCESS
_IDS
)
if
(
list
->
getItemCount
()
>=
ESTATE_MAX_
BANNED
_IDS
)
{
LLSD
args
;
args
[
"MAX_BANNED"
]
=
llformat
(
"%d"
,
ESTATE_MAX_
ACCESS
_IDS
);
args
[
"MAX_BANNED"
]
=
llformat
(
"%d"
,
ESTATE_MAX_
BANNED
_IDS
);
LLNotificationsUtil
::
add
(
"MaxBannedAgentsOnRegion"
,
args
);
return
;
}
...
...
@@ -3180,13 +3180,13 @@ void LLPanelEstateAccess::accessAddCore3(const uuid_vec_t& ids, std::vector<LLAv
LLNameListCtrl
*
name_list
=
panel
->
getChild
<
LLNameListCtrl
>
(
"banned_avatar_name_list"
);
LLNameListCtrl
*
em_list
=
panel
->
getChild
<
LLNameListCtrl
>
(
"estate_manager_name_list"
);
int
currentCount
=
(
name_list
?
name_list
->
getItemCount
()
:
0
);
if
(
ids
.
size
()
+
currentCount
>
ESTATE_MAX_
ACCESS
_IDS
)
if
(
ids
.
size
()
+
currentCount
>
ESTATE_MAX_
BANNED
_IDS
)
{
LLSD
args
;
args
[
"NUM_ADDED"
]
=
llformat
(
"%d"
,
ids
.
size
());
args
[
"MAX_AGENTS"
]
=
llformat
(
"%d"
,
ESTATE_MAX_
ACCESS
_IDS
);
args
[
"MAX_AGENTS"
]
=
llformat
(
"%d"
,
ESTATE_MAX_
BANNED
_IDS
);
args
[
"LIST_TYPE"
]
=
LLTrans
::
getString
(
"RegionInfoListTypeBannedAgents"
);
args
[
"NUM_EXCESS"
]
=
llformat
(
"%d"
,
(
ids
.
size
()
+
currentCount
)
-
ESTATE_MAX_
ACCESS
_IDS
);
args
[
"NUM_EXCESS"
]
=
llformat
(
"%d"
,
(
ids
.
size
()
+
currentCount
)
-
ESTATE_MAX_
BANNED
_IDS
);
LLNotificationsUtil
::
add
(
"MaxAgentOnRegionBatch"
,
args
);
delete
change_info
;
return
;
...
...
@@ -3565,7 +3565,7 @@ void LLPanelEstateAccess::requestEstateGetAccessCoro(std::string url)
{
LLStringUtil
::
format_map_t
args
;
args
[
"[BANNEDAGENTS]"
]
=
llformat
(
"%d"
,
result
[
"BannedAgents"
].
size
());
args
[
"[MAXBANNED]"
]
=
llformat
(
"%d"
,
ESTATE_MAX_
ACCESS
_IDS
);
args
[
"[MAXBANNED]"
]
=
llformat
(
"%d"
,
ESTATE_MAX_
BANNED
_IDS
);
std
::
string
msg
=
LLTrans
::
getString
(
"RegionInfoBannedResidents"
,
args
);
panel
->
getChild
<
LLUICtrl
>
(
"ban_resident_label"
)
->
setValue
(
LLSD
(
msg
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment