}
if( updateViewer )
- myGLViewer2d->activateDrawer( object, TRUE, TRUE );
+ {
+ if( myUpdateAll )
+ myGLViewer2d->updateAll();
+ else
+ myGLViewer2d->activateDrawer( object, TRUE, TRUE );
+ }
}
/*!
transPoint( x, y );
GLViewer_Pnt point( x, y );
- if( e->button() == Qt::LeftButton && vp->startPulling( point ) )
- return;
+ // moved to updateOperations() - see below
+ //if( e->button() == Qt::LeftButton && vp->startPulling( point ) )
+ // return;
if( e->button() == Qt::LeftButton && !(vp->currentBlock() & BS_Selection) && !myGLContext->getCurrentObject() )
vp->startSelectByRect( e->x(), e->y() );
{
GLViewer_ViewPort2d* vp = ( GLViewer_ViewPort2d* )((GLViewer_ViewFrame*)getActiveView())->getViewPort();
+ float x = e->pos().x();
+ float y = e->pos().y();
+ transPoint( x, y );
+ GLViewer_Pnt point( x, y );
+
if( vp->isPulling() )
{
- float x = e->pos().x();
- float y = e->pos().y();
- transPoint( x, y );
-
- vp->drawPulling( GLViewer_Pnt( x, y ) );
+ vp->drawPulling( point );
updateAll();
return true;
}
+ if( e->state() == Qt::LeftButton && vp->startPulling( point ) )
+ return true;
if( !myGLContext->getCurrentObject() )
{