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
1852cadb
Commit
1852cadb
authored
4 years ago
by
Kitty Barnett
Browse files
Options
Downloads
Plain Diff
Merge branch 'rlva/feature/eep' into rlva/development
parents
9d075529
471c53e8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/newview/rlvenvironment.cpp
+5
-5
5 additions, 5 deletions
indra/newview/rlvenvironment.cpp
indra/newview/rlvenvironment.h
+2
-2
2 additions, 2 deletions
indra/newview/rlvenvironment.h
with
7 additions
and
7 deletions
indra/newview/rlvenvironment.cpp
+
5
−
5
View file @
1852cadb
...
...
@@ -558,15 +558,15 @@ ERlvCmdRet RlvEnvironment::handleSetFn(const std::string& strRlvOption, const st
}
template
<
>
std
::
string
RlvEnvironment
::
handleLegacyGetFn
<
LLVector2
>
(
const
std
::
function
<
const
LLVector2
&
(
LLSettingsSkyPtr_t
)
>&
getFn
,
U32
idxComponent
)
std
::
string
RlvEnvironment
::
handleLegacyGetFn
<
LLVector2
>
(
const
std
::
function
<
const
LLVector2
(
LLSettingsSkyPtr_t
)
>&
getFn
,
U32
idxComponent
)
{
if
(
idxComponent
>
2
)
if
(
idxComponent
>
=
2
)
return
LLStringUtil
::
null
;
return
std
::
to_string
(
getFn
(
LLEnvironment
::
instance
().
getCurrentSky
()).
mV
[
idxComponent
]);
}
template
<
>
std
::
string
RlvEnvironment
::
handleLegacyGetFn
<
LLColor3
>
(
const
std
::
function
<
const
LLColor3
&
(
LLSettingsSkyPtr_t
)
>&
getFn
,
U32
idxComponent
)
std
::
string
RlvEnvironment
::
handleLegacyGetFn
<
LLColor3
>
(
const
std
::
function
<
const
LLColor3
(
LLSettingsSkyPtr_t
)
>&
getFn
,
U32
idxComponent
)
{
if
(
(
idxComponent
>=
VRED
)
&&
(
idxComponent
<=
VBLUE
)
)
{
...
...
@@ -583,7 +583,7 @@ std::string RlvEnvironment::handleLegacyGetFn<LLColor3>(const std::function<cons
template
<
>
ERlvCmdRet
RlvEnvironment
::
handleLegacySetFn
<
LLVector2
>
(
float
optionValue
,
LLVector2
curValue
,
const
std
::
function
<
void
(
LLSettingsSkyPtr_t
,
const
LLVector2
&
)
>&
setFn
,
U32
idxComponent
)
{
if
(
idxComponent
>
2
)
if
(
idxComponent
>
=
2
)
return
RLV_RET_FAILED_UNKNOWN
;
LLSettingsSky
::
ptr_t
pSky
=
LLEnvironment
::
instance
().
getCurrentSky
();
...
...
@@ -672,7 +672,7 @@ void RlvEnvironment::registerSetEnvFn(const std::string& strFnName, const std::f
}
template
<
typename
T
>
void
RlvEnvironment
::
registerLegacySkyFn
(
const
std
::
string
&
strFnName
,
const
std
::
function
<
const
T
&
(
LLSettingsSkyPtr_t
)
>&
getFn
,
const
std
::
function
<
void
(
LLSettingsSkyPtr_t
,
const
T
&
)
>&
setFn
)
void
RlvEnvironment
::
registerLegacySkyFn
(
const
std
::
string
&
strFnName
,
const
std
::
function
<
const
T
(
LLSettingsSkyPtr_t
)
>&
getFn
,
const
std
::
function
<
void
(
LLSettingsSkyPtr_t
,
const
T
&
)
>&
setFn
)
{
RLV_ASSERT
(
m_LegacyGetFnLookup
.
end
()
==
m_LegacyGetFnLookup
.
find
(
strFnName
));
m_LegacyGetFnLookup
.
insert
(
std
::
make_pair
(
strFnName
,
[
this
,
getFn
](
const
std
::
string
&
strRlvParam
,
U32
idxComponent
)
...
...
This diff is collapsed.
Click to expand it.
indra/newview/rlvenvironment.h
+
2
−
2
View file @
1852cadb
...
...
@@ -45,12 +45,12 @@ class RlvEnvironment : public RlvExtCommandHandler
void
registerGetEnvFn
(
const
std
::
string
&
strFnName
,
const
std
::
function
<
std
::
string
(
LLEnvironment
::
EnvSelection_t
env
)
>&
getFn
);
template
<
typename
T
>
void
registerSetEnvFn
(
const
std
::
string
&
strFnName
,
const
std
::
function
<
ERlvCmdRet
(
LLEnvironment
::
EnvSelection_t
env
,
const
T
&
strRlvOption
)
>&
setFn
);
template
<
typename
T
>
void
registerSkyFn
(
const
std
::
string
&
strFnName
,
const
std
::
function
<
T
(
LLSettingsSky
::
ptr_t
)
>&
getFn
,
const
std
::
function
<
void
(
LLSettingsSky
::
ptr_t
,
const
T
&
)
>&
setFn
);
template
<
typename
T
>
void
registerLegacySkyFn
(
const
std
::
string
&
strFnName
,
const
std
::
function
<
const
T
&
(
LLSettingsSky
::
ptr_t
)
>&
getFn
,
const
std
::
function
<
void
(
LLSettingsSky
::
ptr_t
,
const
T
&
)
>&
setFn
);
template
<
typename
T
>
void
registerLegacySkyFn
(
const
std
::
string
&
strFnName
,
const
std
::
function
<
const
T
(
LLSettingsSky
::
ptr_t
)
>&
getFn
,
const
std
::
function
<
void
(
LLSettingsSky
::
ptr_t
,
const
T
&
)
>&
setFn
);
// Command handling helpers
template
<
typename
T
>
std
::
string
handleGetFn
(
const
std
::
function
<
T
(
LLSettingsSky
::
ptr_t
)
>&
fn
);
template
<
typename
T
>
ERlvCmdRet
handleSetFn
(
const
std
::
string
&
strRlvOption
,
const
std
::
function
<
void
(
LLSettingsSky
::
ptr_t
,
const
T
&
)
>&
fn
);
template
<
typename
T
>
std
::
string
handleLegacyGetFn
(
const
std
::
function
<
const
T
&
(
LLSettingsSky
::
ptr_t
)
>&
getFn
,
U32
idxComponent
);
template
<
typename
T
>
std
::
string
handleLegacyGetFn
(
const
std
::
function
<
const
T
(
LLSettingsSky
::
ptr_t
)
>&
getFn
,
U32
idxComponent
);
template
<
typename
T
>
ERlvCmdRet
handleLegacySetFn
(
float
optionValue
,
T
value
,
const
std
::
function
<
void
(
LLSettingsSky
::
ptr_t
,
const
T
&
)
>&
setFn
,
U32
idxComponent
);
/*
...
...
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