Vector3 weird assignment..
Posted: Mon May 09, 2011 1:19 pm
Someone should fix this:-
It compiles in Visual 2005 without even a warning..
Code: Select all
Vector3 test;
test = true;
Support and community hang-out spot for Ogre3D
https://forums.ogre3d.org/
Code: Select all
Vector3 test;
test = true;
Code: Select all
bool mHasPosition;
Vector3 mPosition;
...
mPosition = true; // it should be mHasPosition = true;
Code: Select all
inline explicit Vector3( const Real scaler )So the idea is to provide a way to build a scaling vector in one line, i guess. Is it widely used in the Ogre code?inline Vector3& operator = ( const Real fScaler )