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
Testicular Slingshot
Alchemy Viewer
Commits
5dc32ae2
Commit
5dc32ae2
authored
Jan 03, 2020
by
Rye Mutt
🍞
Browse files
Clean up some member variable shadowing in particles
parent
e6c0e1ce
Changes
4
Hide whitespace changes
Inline
Side-by-side
indra/llcommon/llinitparam.h
View file @
5dc32ae2
...
...
@@ -872,6 +872,8 @@ namespace LLInitParam
const
Param
*
getParamFromHandle
(
const
param_handle_t
param_handle
)
const
{
if
(
param_handle
==
0
)
return
nullptr
;
const
uintptr_t
baseblock_address
=
reinterpret_cast
<
uintptr_t
>
(
this
);
return
reinterpret_cast
<
const
Param
*>
(
baseblock_address
+
param_handle
);
}
...
...
indra/newview/llviewerjointmesh.cpp
View file @
5dc32ae2
...
...
@@ -469,28 +469,28 @@ BOOL LLViewerJointMesh::updateLOD(F32 pixel_area, BOOL activate)
}
// static
void
LLViewerJointMesh
::
updateGeometry
(
LLFace
*
mF
ace
,
LLPolyMesh
*
mM
esh
)
void
LLViewerJointMesh
::
updateGeometry
(
LLFace
*
f
ace
p
,
LLPolyMesh
*
m
esh
)
{
LLStrider
<
LLVector3
>
o_vertices
;
LLStrider
<
LLVector3
>
o_normals
;
//get vertex and normal striders
LLVertexBuffer
*
buffer
=
mF
ace
->
getVertexBuffer
();
LLVertexBuffer
*
buffer
=
f
ace
p
->
getVertexBuffer
();
buffer
->
getVertexStrider
(
o_vertices
,
0
);
buffer
->
getNormalStrider
(
o_normals
,
0
);
F32
*
__restrict
vert
=
o_vertices
[
0
].
mV
;
F32
*
__restrict
norm
=
o_normals
[
0
].
mV
;
const
F32
*
__restrict
weights
=
m
M
esh
->
getWeights
();
const
LLVector4a
*
__restrict
coords
=
(
LLVector4a
*
)
mM
esh
->
getCoords
();
const
LLVector4a
*
__restrict
normals
=
(
LLVector4a
*
)
mM
esh
->
getNormals
();
const
F32
*
__restrict
weights
=
mesh
->
getWeights
();
const
LLVector4a
*
__restrict
coords
=
(
LLVector4a
*
)
m
esh
->
getCoords
();
const
LLVector4a
*
__restrict
normals
=
(
LLVector4a
*
)
m
esh
->
getNormals
();
U32
offset
=
m
M
esh
->
mFaceVertexOffset
*
4
;
U32
offset
=
mesh
->
mFaceVertexOffset
*
4
;
vert
+=
offset
;
norm
+=
offset
;
for
(
U32
index
=
0
;
index
<
m
M
esh
->
getNumVertices
();
index
++
)
for
(
U32
index
=
0
;
index
<
mesh
->
getNumVertices
();
index
++
)
{
// equivalent to joint = floorf(weights[index]);
S32
joint
=
_mm_cvtt_ss2si
(
_mm_load_ss
(
weights
+
index
));
...
...
indra/newview/llviewerpartsim.cpp
View file @
5dc32ae2
...
...
@@ -76,9 +76,7 @@ LLViewerPart::LLViewerPart() :
mPartID
(
0
),
mLastUpdateTime
(
0.
f
),
mSkipOffset
(
0.
f
),
mImagep
(
NULL
),
mStartGlow
(
0.
f
),
mEndGlow
(
0.
f
)
mImagep
(
NULL
)
{
mPartSourcep
=
NULL
;
mParent
=
NULL
;
...
...
indra/newview/llviewerpartsim.h
View file @
5dc32ae2
...
...
@@ -74,8 +74,6 @@ public:
LLVector3
mAxis
;
LLColor4
mColor
;
LLVector2
mScale
;
F32
mStartGlow
;
F32
mEndGlow
;
LLColor4U
mGlow
;
...
...
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