Removed harmless warnings
This commit is contained in:
parent
62c3f721aa
commit
928c8dd997
|
@ -93,7 +93,7 @@ public:
|
||||||
|
|
||||||
void clear(){ datasize = 0;}
|
void clear(){ datasize = 0;}
|
||||||
|
|
||||||
const unsigned int & size() const { return datasize;}
|
const unsigned int size() const { return datasize;}
|
||||||
|
|
||||||
bool & operator [](const int & i){return data[i];}
|
bool & operator [](const int & i){return data[i];}
|
||||||
|
|
||||||
|
|
|
@ -125,8 +125,8 @@ Transform::Transform() {
|
||||||
}
|
}
|
||||||
|
|
||||||
Trackball::Trackball(): current_button(0), current_mode(NULL), inactive_mode(NULL),
|
Trackball::Trackball(): current_button(0), current_mode(NULL), inactive_mode(NULL),
|
||||||
dragging(false), spinnable(true), spinning(false),
|
dragging(false), last_time(0), spinnable(true), spinning(false),
|
||||||
history_size(10), last_time(0), fixedTimestepMode(false) {
|
history_size(10), fixedTimestepMode(false) {
|
||||||
setDefaultMapping ();
|
setDefaultMapping ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -201,8 +201,8 @@ public:
|
||||||
~Trackball();
|
~Trackball();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// TriMesh cannot be copied. Use Append (see vcg/complex/trimesh/append.h)
|
// Trackball must not be copied. Use Append (see vcg/complex/trimesh/append.h)
|
||||||
Trackball operator =(const Trackball & m){}
|
Trackball operator =(const Trackball & /*m*/){ assert(0); return *this; }
|
||||||
public:
|
public:
|
||||||
/*!
|
/*!
|
||||||
@brief Reset the trackball.
|
@brief Reset the trackball.
|
||||||
|
|
|
@ -885,7 +885,7 @@ void NavigatorWasdMode::Animate(unsigned int msec, Trackball * tb){
|
||||||
vel = current_speed.Norm();
|
vel = current_speed.Norm();
|
||||||
step_x += vel*sec;
|
step_x += vel*sec;
|
||||||
float step_current_min = (float)fabs(sin( step_x*M_PI / step_length ))*step_height;
|
float step_current_min = (float)fabs(sin( step_x*M_PI / step_length ))*step_height;
|
||||||
if (step_current<step_current_min); step_current=step_current_min;
|
if (step_current<step_current_min) step_current=step_current_min;
|
||||||
}
|
}
|
||||||
|
|
||||||
current_speed*=pow(dumping,sec);
|
current_speed*=pow(dumping,sec);
|
||||||
|
|
Loading…
Reference in New Issue