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