Blender Git Loki

Git Commits -> Revision 7165db5

Revision 7165db5 by Sybren A. Stüvel (master)
January 21, 2015, 17:43 (GMT)
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

Commit Details:

Full Hash: 7165db53f2663b78749019ff791816c36e6182e6
Parent Commit: 684942c
Lines Changed: +46, -49

1 Modified Path:

/source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp (+46, -49) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021