Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alchemy
Alchemy Next
Commits
3be18ddc
Commit
3be18ddc
authored
Aug 22, 2021
by
Rye Mutt
🍞
Browse files
Allow instant transition between above and below water
parent
0f1a59a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
indra/newview/llviewercamera.cpp
View file @
3be18ddc
...
...
@@ -121,18 +121,7 @@ void LLViewerCamera::updateCameraLocation(const LLVector3 ¢er,
mLastPointOfInterest
=
point_of_interest
;
LLViewerRegion
*
regp
=
gAgent
.
getRegion
();
F32
water_height
=
(
NULL
!=
regp
)
?
regp
->
getWaterHeight
()
:
0.
f
;
LLVector3
origin
=
center
;
if
(
origin
.
mV
[
2
]
>
water_height
)
{
origin
.
mV
[
2
]
=
llmax
(
origin
.
mV
[
2
],
water_height
+
0.20
f
);
}
else
{
origin
.
mV
[
2
]
=
llmin
(
origin
.
mV
[
2
],
water_height
-
0.20
f
);
}
setOriginAndLookAt
(
origin
,
up_direction
,
point_of_interest
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment