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
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Alchemy Archive
Alchemy Viewer
Commits
61de0ae6
Commit
61de0ae6
authored
5 years ago
by
Rye Mutt
Browse files
Options
Downloads
Patches
Plain Diff
Fix animations playing inconsistently(This was never meant to be commited in the first place)
parent
110a6b16
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/llcharacter/llmotioncontroller.cpp
+5
-5
5 additions, 5 deletions
indra/llcharacter/llmotioncontroller.cpp
indra/llcharacter/llmotioncontroller.h
+2
-1
2 additions, 1 deletion
indra/llcharacter/llmotioncontroller.h
with
7 additions
and
6 deletions
indra/llcharacter/llmotioncontroller.cpp
+
5
−
5
View file @
61de0ae6
...
@@ -333,7 +333,7 @@ void LLMotionController::removeMotionInstance(LLMotion* motionp)
...
@@ -333,7 +333,7 @@ void LLMotionController::removeMotionInstance(LLMotion* motionp)
motionp
->
deactivate
();
motionp
->
deactivate
();
mLoadingMotions
.
erase
(
motionp
);
mLoadingMotions
.
erase
(
motionp
);
mLoadedMotions
.
erase
(
motionp
);
mLoadedMotions
.
erase
(
motionp
);
mActiveMotions
.
eras
e
(
motionp
);
mActiveMotions
.
remov
e
(
motionp
);
delete
motionp
;
delete
motionp
;
}
}
}
}
...
@@ -961,9 +961,9 @@ BOOL LLMotionController::activateMotionInstance(LLMotion *motion, F32 time)
...
@@ -961,9 +961,9 @@ BOOL LLMotionController::activateMotionInstance(LLMotion *motion, F32 time)
if
(
motion
->
isActive
())
if
(
motion
->
isActive
())
{
{
mActiveMotions
.
eras
e
(
motion
);
mActiveMotions
.
remov
e
(
motion
);
}
}
mActiveMotions
.
emplace
(
motion
);
mActiveMotions
.
push_front
(
motion
);
motion
->
activate
(
time
);
motion
->
activate
(
time
);
motion
->
onUpdate
(
0.
f
,
mJointSignature
[
1
]);
motion
->
onUpdate
(
0.
f
,
mJointSignature
[
1
]);
...
@@ -998,7 +998,7 @@ BOOL LLMotionController::deactivateMotionInstance(LLMotion *motion)
...
@@ -998,7 +998,7 @@ BOOL LLMotionController::deactivateMotionInstance(LLMotion *motion)
else
else
{
{
// for motions that we are keeping, simply remove from active queue
// for motions that we are keeping, simply remove from active queue
mActiveMotions
.
eras
e
(
motion
);
mActiveMotions
.
remov
e
(
motion
);
}
}
return
TRUE
;
return
TRUE
;
...
@@ -1062,7 +1062,7 @@ void LLMotionController::dumpMotions()
...
@@ -1062,7 +1062,7 @@ void LLMotionController::dumpMotions()
state_string
+=
std
::
string
(
"l"
);
state_string
+=
std
::
string
(
"l"
);
if
(
mLoadedMotions
.
find
(
motion
)
!=
mLoadedMotions
.
cend
())
if
(
mLoadedMotions
.
find
(
motion
)
!=
mLoadedMotions
.
cend
())
state_string
+=
std
::
string
(
"L"
);
state_string
+=
std
::
string
(
"L"
);
if
(
mActiveMotions
.
find
(
motion
)
!=
mActiveMotions
.
cend
())
if
(
std
::
find
(
mActiveMotions
.
cbegin
(),
mActiveMotions
.
cend
(),
motion
)
!=
mActiveMotions
.
cend
())
state_string
+=
std
::
string
(
"A"
);
state_string
+=
std
::
string
(
"A"
);
if
(
mDeprecatedMotions
.
find
(
motion
)
!=
mDeprecatedMotions
.
cend
())
if
(
mDeprecatedMotions
.
find
(
motion
)
!=
mDeprecatedMotions
.
cend
())
state_string
+=
std
::
string
(
"D"
);
state_string
+=
std
::
string
(
"D"
);
...
...
This diff is collapsed.
Click to expand it.
indra/llcharacter/llmotioncontroller.h
+
2
−
1
View file @
61de0ae6
...
@@ -83,6 +83,7 @@ class LLMotionController
...
@@ -83,6 +83,7 @@ class LLMotionController
{
{
public:
public:
using
motion_set_t
=
absl
::
flat_hash_set
<
LLMotion
*>
;
using
motion_set_t
=
absl
::
flat_hash_set
<
LLMotion
*>
;
using
motion_list_t
=
std
::
list
<
LLMotion
*>
;
using
motion_deque_t
=
std
::
deque
<
LLMotion
*>
;
using
motion_deque_t
=
std
::
deque
<
LLMotion
*>
;
BOOL
mIsSelf
;
BOOL
mIsSelf
;
...
@@ -212,7 +213,7 @@ protected:
...
@@ -212,7 +213,7 @@ protected:
motion_set_t
mLoadingMotions
;
motion_set_t
mLoadingMotions
;
motion_set_t
mLoadedMotions
;
motion_set_t
mLoadedMotions
;
motion_s
e
t_t
mActiveMotions
;
motion_
li
st_t
mActiveMotions
;
motion_set_t
mDeprecatedMotions
;
motion_set_t
mDeprecatedMotions
;
LLFrameTimer
mTimer
;
LLFrameTimer
mTimer
;
...
...
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