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.
parent
07f2c2bf30
commit
47a792e83c
|
@ -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)),
|
||||
|
|
Loading…
Reference in New Issue