Integrated change #5189 to sensor-dev branch: Initialized cullingRadius member of Body class. Leaving it uninitialized meant that it could end up set to NaN, resulting in odd behavior.

sensor-dev
Chris Laurel 2012-02-25 02:21:11 +00:00
parent 07f2c2bf30
commit 47a792e83c
1 changed files with 1 additions and 0 deletions

View File

@ -39,6 +39,7 @@ Body::Body(PlanetarySystem* _system, const string& _name) :
mass(0.0f),
albedo(0.5f),
geometryOrientation(Quaternionf::Identity()),
cullingRadius(0.0f),
geometry(InvalidResource),
geometryScale(1.0f),
surface(Color(1.0f, 1.0f, 1.0f)),