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
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
Testicular Slingshot
Alchemy Viewer
Commits
b4d3ee3b
Commit
b4d3ee3b
authored
9 years ago
by
Drake Arconis
Browse files
Options
Downloads
Patches
Plain Diff
Fix some coverity buggles
parent
482072ce
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/llappearance/llpolymesh.cpp
+6
-2
6 additions, 2 deletions
indra/llappearance/llpolymesh.cpp
indra/llcharacter/llheadrotmotion.cpp
+1
-1
1 addition, 1 deletion
indra/llcharacter/llheadrotmotion.cpp
with
7 additions
and
3 deletions
indra/llappearance/llpolymesh.cpp
+
6
−
2
View file @
b4d3ee3b
...
...
@@ -307,7 +307,11 @@ BOOL LLPolyMeshSharedData::loadMesh( const std::string& fileName )
//----------------------------------------------------------------
// File Header (seek past it)
//----------------------------------------------------------------
fseek
(
fp
,
24
,
SEEK_SET
);
if
(
fseek
(
fp
,
24
,
SEEK_SET
)
!=
0
)
{
LL_ERRS
()
<<
"can't seek past header from "
<<
fileName
<<
LL_ENDL
;
return
FALSE
;
}
//----------------------------------------------------------------
// HasWeights
...
...
@@ -605,7 +609,7 @@ BOOL LLPolyMeshSharedData::loadMesh( const std::string& fileName )
//-------------------------------------------------------------------------
char
morphName
[
64
+
1
];
morphName
[
sizeof
(
morphName
)
-
1
]
=
'\0'
;
// ensure nul-termination
while
(
fread
(
&
morphName
,
sizeof
(
char
),
64
,
fp
)
==
64
)
while
(
fread
(
morphName
,
sizeof
(
char
),
64
,
fp
)
==
64
)
{
if
(
!
strcmp
(
morphName
,
"End Morphs"
))
{
...
...
This diff is collapsed.
Click to expand it.
indra/llcharacter/llheadrotmotion.cpp
+
1
−
1
View file @
b4d3ee3b
...
...
@@ -460,7 +460,7 @@ BOOL LLEyeMotion::onUpdate(F32 time, U8* joint_mask)
// calculate vergence
F32
interocular_dist
=
(
mLeftEyeState
->
getJoint
()
->
getWorldPosition
()
-
mRightEyeState
->
getJoint
()
->
getWorldPosition
()).
magVec
();
vergence
=
-
atan2
((
interocular_dist
/
2.
f
),
lookAtDistance
);
llclamp
(
vergence
,
-
F_PI_BY_TWO
,
0.
f
);
vergence
=
llclamp
(
vergence
,
-
F_PI_BY_TWO
,
0.
f
);
}
else
{
...
...
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