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
a7734451
Commit
a7734451
authored
6 years ago
by
Brad Payne (Vir Linden)
Browse files
Options
Downloads
Patches
Plain Diff
SL-10471 - animation validation for constraints
parent
a3b3ad72
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/llavatarappearance.cpp
+1
-1
1 addition, 1 deletion
indra/llappearance/llavatarappearance.cpp
indra/llcharacter/llkeyframemotion.cpp
+14
-0
14 additions, 0 deletions
indra/llcharacter/llkeyframemotion.cpp
with
15 additions
and
1 deletion
indra/llappearance/llavatarappearance.cpp
+
1
−
1
View file @
a7734451
...
@@ -1350,7 +1350,7 @@ LLVector3 LLAvatarAppearance::getVolumePos(S32 joint_index, LLVector3& volume_of
...
@@ -1350,7 +1350,7 @@ LLVector3 LLAvatarAppearance::getVolumePos(S32 joint_index, LLVector3& volume_of
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
LLJoint
*
LLAvatarAppearance
::
findCollisionVolume
(
U32
volume_id
)
LLJoint
*
LLAvatarAppearance
::
findCollisionVolume
(
U32
volume_id
)
{
{
if
((
S32
)
volume_id
>
mNumCollisionVolumes
)
if
((
(
S32
)
volume_id
>
=
mNumCollisionVolumes
)
||
((
S32
)
volume_id
<
0
))
{
{
return
NULL
;
return
NULL
;
}
}
...
...
This diff is collapsed.
Click to expand it.
indra/llcharacter/llkeyframemotion.cpp
+
14
−
0
View file @
a7734451
...
@@ -1772,6 +1772,13 @@ BOOL LLKeyframeMotion::deserialize(LLDataPacker& dp, const LLUUID& asset_id)
...
@@ -1772,6 +1772,13 @@ BOOL LLKeyframeMotion::deserialize(LLDataPacker& dp, const LLUUID& asset_id)
bin_data
[
BIN_DATA_LENGTH
]
=
0
;
// Ensure null termination
bin_data
[
BIN_DATA_LENGTH
]
=
0
;
// Ensure null termination
str
=
(
char
*
)
bin_data
;
str
=
(
char
*
)
bin_data
;
constraintp
->
mSourceConstraintVolume
=
mCharacter
->
getCollisionVolumeID
(
str
);
constraintp
->
mSourceConstraintVolume
=
mCharacter
->
getCollisionVolumeID
(
str
);
if
(
constraintp
->
mSourceConstraintVolume
==
-
1
)
{
LL_WARNS
()
<<
"not a valid source constraint volume "
<<
str
<<
" for animation "
<<
asset_id
<<
LL_ENDL
;
delete
constraintp
;
return
FALSE
;
}
if
(
!
dp
.
unpackVector3
(
constraintp
->
mSourceConstraintOffset
,
"source_offset"
))
if
(
!
dp
.
unpackVector3
(
constraintp
->
mSourceConstraintOffset
,
"source_offset"
))
{
{
...
@@ -1808,6 +1815,13 @@ BOOL LLKeyframeMotion::deserialize(LLDataPacker& dp, const LLUUID& asset_id)
...
@@ -1808,6 +1815,13 @@ BOOL LLKeyframeMotion::deserialize(LLDataPacker& dp, const LLUUID& asset_id)
{
{
constraintp
->
mConstraintTargetType
=
CONSTRAINT_TARGET_TYPE_BODY
;
constraintp
->
mConstraintTargetType
=
CONSTRAINT_TARGET_TYPE_BODY
;
constraintp
->
mTargetConstraintVolume
=
mCharacter
->
getCollisionVolumeID
(
str
);
constraintp
->
mTargetConstraintVolume
=
mCharacter
->
getCollisionVolumeID
(
str
);
if
(
constraintp
->
mTargetConstraintVolume
==
-
1
)
{
LL_WARNS
()
<<
"not a valid target constraint volume "
<<
str
<<
" for animation "
<<
asset_id
<<
LL_ENDL
;
delete
constraintp
;
return
FALSE
;
}
}
}
if
(
!
dp
.
unpackVector3
(
constraintp
->
mTargetConstraintOffset
,
"target_offset"
))
if
(
!
dp
.
unpackVector3
(
constraintp
->
mTargetConstraintOffset
,
"target_offset"
))
...
...
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