Blender Git Commit Log

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)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021