mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-05-06 19:01:04 +03:00
Clear velocity only if it's not ignored
This commit is contained in:
parent
7b238e9d34
commit
fecb601fc4
1 changed files with 6 additions and 2 deletions
|
@ -1442,7 +1442,9 @@ void ScriptSlave::EndPath(Event *ev)
|
|||
|
||||
delete splinePath;
|
||||
splinePath = NULL;
|
||||
velocity = vec_zero;
|
||||
if (!ignorevelocity) {
|
||||
velocity = vec_zero;
|
||||
}
|
||||
if (!ignoreangles) {
|
||||
avelocity = vec_zero;
|
||||
}
|
||||
|
@ -1639,7 +1641,9 @@ void ScriptSlave::FollowingPath(Event *ev)
|
|||
if ((splinePath->GetType() == SPLINE_CLAMP) && (splineTime > (splinePath->EndPoint() - 2))) {
|
||||
delete splinePath;
|
||||
splinePath = NULL;
|
||||
velocity = vec_zero;
|
||||
if (!ignorevelocity) {
|
||||
velocity = vec_zero;
|
||||
}
|
||||
if (!ignoreangles) {
|
||||
avelocity = vec_zero;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue