Fix highlighting problem during interaction

This commit is contained in:
apl 2016-10-12 19:00:32 +03:00
parent 29139022cc
commit 8935becb09
2 changed files with 11 additions and 0 deletions

11
src/MeasureGUI/MeasureGUI_AnnotationInteractor.cxx Executable file → Normal file
View File

@ -232,6 +232,11 @@ bool MeasureGUI_AnnotationInteractor::eventFilter( QObject* theObject, QEvent* t
mySelection.Append( anAISContext->SelectedOwner() );
}
if ( anAISContext->IsHilighted( myActiveIO ) )
{
anAISContext->Unhilight( myActiveIO, Standard_False );
}
anAISContext->ClearSelected( Standard_False );
anAISContext->AddOrRemoveSelected( aDetected );
@ -253,6 +258,12 @@ bool MeasureGUI_AnnotationInteractor::eventFilter( QObject* theObject, QEvent* t
if ( !myActiveIO.IsNull() )
{
const Handle(AIS_InteractiveContext) anAISContext = myViewer->getAISContext();
if ( anAISContext->IsHilighted( myActiveIO ) )
{
anAISContext->Unhilight( myActiveIO, Standard_False );
}
const QPoint aDelta = aMouseEv->pos() - myStartPoint;
myActiveIO->Drag( aDelta.x(), (-aDelta.y()), aView3d );
anAISContext->Update( myActiveIO, Standard_False );

0
src/MeasureGUI/MeasureGUI_AnnotationInteractor.h Executable file → Normal file
View File