diff options
author | Sybren A. Stüvel <sybren@stuvel.eu> | 2015-01-21 20:42:24 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@stuvel.eu> | 2015-01-21 20:43:05 +0300 |
commit | 7165db53f2663b78749019ff791816c36e6182e6 (patch) | |
tree | f448b301404485d15773ae59ad88c31887cfc4bc /source/gameengine/Physics/common | |
parent | 684942c2feb60a5b2c73cd588ca6367699e4b5e3 (diff) |
Cleanup of BGE code CcdPhysicsEnvironment::CallbackTriggers()
Refactored some code to be easier to read. Semantically the code is
identical.
- Some conditions were negated to be able to return/continue early,
rather than having the majority of the code inside an if-body.
- Conditions were simplified (!(a == b)) turned into (a != b);
repeated conditions calculated only once.
- Unnecessary variables and one unnecessary condition were
eliminated.
Reviewers: campbellbarton, lordloki
Reviewed By: lordloki
Projects: #game_physics
Differential Revision: https://developer.blender.org/D954
Diffstat (limited to 'source/gameengine/Physics/common')
0 files changed, 0 insertions, 0 deletions