mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 17:35:45 +02:00
Merge pull request #932 from LionTurtle/master
Fix sign error in nudge code that made nudging in the negative Z direction buggy.
This commit is contained in:
commit
e6f708d035
1 changed files with 1 additions and 1 deletions
|
@ -1927,7 +1927,7 @@ void reorderChildrenForNudge(void* extraData) {
|
|||
for (int i = 0; i < NUMBER_OF_CHILDREN / 2; i++) {
|
||||
lastToNudgeVote[POSITIVE_Z_ORDERING[i]]++;
|
||||
}
|
||||
} else if (nudgeVec.z > 0) {
|
||||
} else if (nudgeVec.z < 0) {
|
||||
for (int i = 0; i < NUMBER_OF_CHILDREN / 2; i++) {
|
||||
lastToNudgeVote[NEGATIVE_Z_ORDERING[i]]++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue