Gui: Fix warning about unused variable
This commit is contained in:
@@ -516,7 +516,6 @@ public:
|
||||
SbVec2s pos = ev.inventor_event->getPosition();
|
||||
auto &ns = this->outermost_context().ns;
|
||||
ns.spin_simplified(
|
||||
ns.viewer->getSoRenderManager()->getCamera(),
|
||||
ns.normalizePixelPos(pos), ns.normalizePixelPos(this->base_pos));
|
||||
this->base_pos = pos;
|
||||
}
|
||||
|
||||
@@ -540,8 +540,7 @@ SbBool MayaGestureNavigationStyle::processSoEvent(const SoEvent * const ev)
|
||||
} else {//one mouse button - normal spinning
|
||||
//this will also handle the single-finger drag (there's no gesture used, pseudomouse is enough)
|
||||
//this->addToLog(event->getPosition(), event->getTime());
|
||||
this->spin_simplified(viewer->getSoRenderManager()->getCamera(),
|
||||
posn, prevnormalized);
|
||||
this->spin_simplified(posn, prevnormalized);
|
||||
processed = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -954,7 +954,7 @@ void NavigationStyle::spin(const SbVec2f & pointerpos)
|
||||
* \param curpos current normalized position or mouse pointer
|
||||
* \param prevpos previous normalized position of mouse pointer
|
||||
*/
|
||||
void NavigationStyle::spin_simplified(SoCamera* cam, SbVec2f curpos, SbVec2f prevpos)
|
||||
void NavigationStyle::spin_simplified(SbVec2f curpos, SbVec2f prevpos)
|
||||
{
|
||||
assert(this->spinprojector);
|
||||
|
||||
|
||||
@@ -220,7 +220,7 @@ protected:
|
||||
void doRotate(SoCamera * camera, float angle, const SbVec2f& pos);
|
||||
void spin(const SbVec2f & pointerpos);
|
||||
SbBool doSpin();
|
||||
void spin_simplified(SoCamera *cam, SbVec2f curpos, SbVec2f prevpos);
|
||||
void spin_simplified(SbVec2f curpos, SbVec2f prevpos);
|
||||
void moveCursorPosition();
|
||||
void saveCursorPosition(const SoEvent * const ev);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user