Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
XDG Integration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
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
JennaHuntsman
XDG Integration
Commits
8a7c0f17
Commit
8a7c0f17
authored
3 years ago
by
Rye Mutt
Browse files
Options
Downloads
Patches
Plain Diff
Fix more warnings
parent
d45b1fa1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/newview/llfloatertools.cpp
+17
-17
17 additions, 17 deletions
indra/newview/llfloatertools.cpp
indra/newview/llviewerinput.cpp
+12
-4
12 additions, 4 deletions
indra/newview/llviewerinput.cpp
with
29 additions
and
21 deletions
indra/newview/llfloatertools.cpp
+
17
−
17
View file @
8a7c0f17
...
@@ -1663,12 +1663,12 @@ void LLFloaterTools::updateMediaSettings()
...
@@ -1663,12 +1663,12 @@ void LLFloaterTools::updateMediaSettings()
// Auto play
// Auto play
//value_bool = default_media_data.getAutoPlay();
//value_bool = default_media_data.getAutoPlay();
// set default to auto play TRUE -- angela EXT-5172
// set default to auto play TRUE -- angela EXT-5172
value_bool
=
true
;
value_bool
=
true
;
struct
functor_getter_auto_play
:
public
LLSelectedTEGetFunctor
<
bool
>
struct
functor_getter_auto_play
:
public
LLSelectedTEGetFunctor
<
bool
>
{
{
functor_getter_auto_play
(
const
LLMediaEntry
&
entry
)
:
mMediaEntry
(
entry
)
{}
functor_getter_auto_play
(
const
LLMediaEntry
&
entry
)
:
mMediaEntry
(
entry
)
{}
bool
get
(
LLViewerObject
*
object
,
S32
face
)
bool
get
(
LLViewerObject
*
object
,
S32
face
)
{
{
if
(
object
)
if
(
object
)
...
@@ -1676,11 +1676,11 @@ void LLFloaterTools::updateMediaSettings()
...
@@ -1676,11 +1676,11 @@ void LLFloaterTools::updateMediaSettings()
if
(
object
->
getTE
(
face
)
->
getMediaData
()
)
if
(
object
->
getTE
(
face
)
->
getMediaData
()
)
return
object
->
getTE
(
face
)
->
getMediaData
()
->
getAutoPlay
();
return
object
->
getTE
(
face
)
->
getMediaData
()
->
getAutoPlay
();
//return mMediaEntry.getAutoPlay(); set default to auto play TRUE -- angela EXT-5172
//return mMediaEntry.getAutoPlay(); set default to auto play TRUE -- angela EXT-5172
return
true
;
return
true
;
};
};
const
LLMediaEntry
&
mMediaEntry
;
const
LLMediaEntry
&
mMediaEntry
;
}
func_auto_play
(
default_media_data
);
}
func_auto_play
(
default_media_data
);
identical
=
selected_objects
->
getSelectedTEValue
(
&
func_auto_play
,
value_bool
);
identical
=
selected_objects
->
getSelectedTEValue
(
&
func_auto_play
,
value_bool
);
base_key
=
std
::
string
(
LLMediaEntry
::
AUTO_PLAY_KEY
);
base_key
=
std
::
string
(
LLMediaEntry
::
AUTO_PLAY_KEY
);
...
@@ -1689,12 +1689,12 @@ void LLFloaterTools::updateMediaSettings()
...
@@ -1689,12 +1689,12 @@ void LLFloaterTools::updateMediaSettings()
// Auto scale
// Auto scale
// set default to auto scale TRUE -- angela EXT-5172
// set default to auto scale TRUE -- angela EXT-5172
//value_bool = default_media_data.getAutoScale();
//value_bool = default_media_data.getAutoScale();
value_bool
=
true
;
value_bool
=
true
;
struct
functor_getter_auto_scale
:
public
LLSelectedTEGetFunctor
<
bool
>
struct
functor_getter_auto_scale
:
public
LLSelectedTEGetFunctor
<
bool
>
{
{
functor_getter_auto_scale
(
const
LLMediaEntry
&
entry
)
:
mMediaEntry
(
entry
)
{}
functor_getter_auto_scale
(
const
LLMediaEntry
&
entry
)
:
mMediaEntry
(
entry
)
{}
bool
get
(
LLViewerObject
*
object
,
S32
face
)
bool
get
(
LLViewerObject
*
object
,
S32
face
)
{
{
...
@@ -1702,12 +1702,12 @@ void LLFloaterTools::updateMediaSettings()
...
@@ -1702,12 +1702,12 @@ void LLFloaterTools::updateMediaSettings()
if
(
object
->
getTE
(
face
)
)
if
(
object
->
getTE
(
face
)
)
if
(
object
->
getTE
(
face
)
->
getMediaData
()
)
if
(
object
->
getTE
(
face
)
->
getMediaData
()
)
return
object
->
getTE
(
face
)
->
getMediaData
()
->
getAutoScale
();
return
object
->
getTE
(
face
)
->
getMediaData
()
->
getAutoScale
();
// return mMediaEntry.getAutoScale(); set default to auto scale TRUE -- angela EXT-5172
// return mMediaEntry.getAutoScale(); set default to auto scale TRUE -- angela EXT-5172
return
true
;
return
true
;
};
};
const
LLMediaEntry
&
mMediaEntry
;
const
LLMediaEntry
&
mMediaEntry
;
}
func_auto_scale
(
default_media_data
);
}
func_auto_scale
(
default_media_data
);
identical
=
selected_objects
->
getSelectedTEValue
(
&
func_auto_scale
,
value_bool
);
identical
=
selected_objects
->
getSelectedTEValue
(
&
func_auto_scale
,
value_bool
);
base_key
=
std
::
string
(
LLMediaEntry
::
AUTO_SCALE_KEY
);
base_key
=
std
::
string
(
LLMediaEntry
::
AUTO_SCALE_KEY
);
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llviewerinput.cpp
+
12
−
4
View file @
8a7c0f17
...
@@ -697,11 +697,13 @@ bool run_forward(EKeystate s)
...
@@ -697,11 +697,13 @@ bool run_forward(EKeystate s)
else
if
(
KEYSTATE_UP
==
s
)
else
if
(
KEYSTATE_UP
==
s
)
{
{
if
(
gAgent
.
mDoubleTapRunMode
==
LLAgent
::
DOUBLETAP_FORWARD
)
if
(
gAgent
.
mDoubleTapRunMode
==
LLAgent
::
DOUBLETAP_FORWARD
)
{
gAgent
.
mDoubleTapRunMode
=
LLAgent
::
DOUBLETAP_NONE
;
gAgent
.
mDoubleTapRunMode
=
LLAgent
::
DOUBLETAP_NONE
;
}
// gAgent.clearRunning();
// gAgent.clearRunning();
// gAgent.sendWalkRun(false);
// gAgent.sendWalkRun(false);
// [RLVa:KB] - Checked: 2011-05-11 (RLVa-1.3.0i) | Added: RLVa-1.3.0i
// [RLVa:KB] - Checked: 2011-05-11 (RLVa-1.3.0i) | Added: RLVa-1.3.0i
gAgent
.
clearTempRun
();
gAgent
.
clearTempRun
();
// [/RLVa:KB]
// [/RLVa:KB]
}
}
agent_push_forward
(
s
);
agent_push_forward
(
s
);
...
@@ -728,11 +730,13 @@ bool run_backward(EKeystate s)
...
@@ -728,11 +730,13 @@ bool run_backward(EKeystate s)
else
if
(
KEYSTATE_UP
==
s
)
else
if
(
KEYSTATE_UP
==
s
)
{
{
if
(
gAgent
.
mDoubleTapRunMode
==
LLAgent
::
DOUBLETAP_BACKWARD
)
if
(
gAgent
.
mDoubleTapRunMode
==
LLAgent
::
DOUBLETAP_BACKWARD
)
{
gAgent
.
mDoubleTapRunMode
=
LLAgent
::
DOUBLETAP_NONE
;
gAgent
.
mDoubleTapRunMode
=
LLAgent
::
DOUBLETAP_NONE
;
}
// gAgent.clearRunning();
// gAgent.clearRunning();
// gAgent.sendWalkRun(false);
// gAgent.sendWalkRun(false);
// [RLVa:KB] - Checked: 2011-05-11 (RLVa-1.3.0i) | Added: RLVa-1.3.0i
// [RLVa:KB] - Checked: 2011-05-11 (RLVa-1.3.0i) | Added: RLVa-1.3.0i
gAgent
.
clearTempRun
();
gAgent
.
clearTempRun
();
// [/RLVa:KB]
// [/RLVa:KB]
}
}
agent_push_backward
(
s
);
agent_push_backward
(
s
);
...
@@ -759,11 +763,13 @@ bool run_left(EKeystate s)
...
@@ -759,11 +763,13 @@ bool run_left(EKeystate s)
else
if
(
KEYSTATE_UP
==
s
)
else
if
(
KEYSTATE_UP
==
s
)
{
{
if
(
gAgent
.
mDoubleTapRunMode
==
LLAgent
::
DOUBLETAP_SLIDELEFT
)
if
(
gAgent
.
mDoubleTapRunMode
==
LLAgent
::
DOUBLETAP_SLIDELEFT
)
{
gAgent
.
mDoubleTapRunMode
=
LLAgent
::
DOUBLETAP_NONE
;
gAgent
.
mDoubleTapRunMode
=
LLAgent
::
DOUBLETAP_NONE
;
}
// gAgent.clearRunning();
// gAgent.clearRunning();
// gAgent.sendWalkRun(false);
// gAgent.sendWalkRun(false);
// [RLVa:KB] - Checked: 2011-05-11 (RLVa-1.3.0i) | Added: RLVa-1.3.0i
// [RLVa:KB] - Checked: 2011-05-11 (RLVa-1.3.0i) | Added: RLVa-1.3.0i
gAgent
.
clearTempRun
();
gAgent
.
clearTempRun
();
// [/RLVa:KB]
// [/RLVa:KB]
}
}
agent_slide_left
(
s
);
agent_slide_left
(
s
);
...
@@ -790,11 +796,13 @@ bool run_right(EKeystate s)
...
@@ -790,11 +796,13 @@ bool run_right(EKeystate s)
else
if
(
KEYSTATE_UP
==
s
)
else
if
(
KEYSTATE_UP
==
s
)
{
{
if
(
gAgent
.
mDoubleTapRunMode
==
LLAgent
::
DOUBLETAP_SLIDERIGHT
)
if
(
gAgent
.
mDoubleTapRunMode
==
LLAgent
::
DOUBLETAP_SLIDERIGHT
)
{
gAgent
.
mDoubleTapRunMode
=
LLAgent
::
DOUBLETAP_NONE
;
gAgent
.
mDoubleTapRunMode
=
LLAgent
::
DOUBLETAP_NONE
;
}
// gAgent.clearRunning();
// gAgent.clearRunning();
// gAgent.sendWalkRun(false);
// gAgent.sendWalkRun(false);
// [RLVa:KB] - Checked: 2011-05-11 (RLVa-1.3.0i) | Added: RLVa-1.3.0i
// [RLVa:KB] - Checked: 2011-05-11 (RLVa-1.3.0i) | Added: RLVa-1.3.0i
gAgent
.
clearTempRun
();
gAgent
.
clearTempRun
();
// [/RLVa:KB]
// [/RLVa:KB]
}
}
agent_slide_right
(
s
);
agent_slide_right
(
s
);
...
...
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