From b3d03ada99f1bcf06a38beb87643ccbf14939641 Mon Sep 17 00:00:00 2001 From: mpa Date: Thu, 19 Mar 2015 15:09:10 +0300 Subject: [PATCH] INT PAL 0052624: Drag-n-drop functionality for dimensions has been broken --- .../MeasureGUI_DimensionInteractor.cxx | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/MeasureGUI/MeasureGUI_DimensionInteractor.cxx b/src/MeasureGUI/MeasureGUI_DimensionInteractor.cxx index ec793e280..ec77e7056 100644 --- a/src/MeasureGUI/MeasureGUI_DimensionInteractor.cxx +++ b/src/MeasureGUI/MeasureGUI_DimensionInteractor.cxx @@ -697,15 +697,23 @@ bool MeasureGUI_DimensionInteractor::eventFilter( QObject* theObject, QEvent* th return false; } + // commented by mpa 18.03.2015: since OCCT version 6.8.0 it's impossible + // to change position of the dimensions presentations (flyout, text), + // because anAISContext has 2 detected objects. + // check that there is only one detected entity - anAISContext->InitDetected(); - if ( anAISContext->MoreDetected() ) + //anAISContext->InitDetected(); + //if ( anAISContext->MoreDetected() ) + //{ + // return false; + //} + + Handle(SelectMgr_EntityOwner) aDetectedOwner = anAISContext->DetectedOwner(); + if( aDetectedOwner.IsNull() ) { return false; } - Handle(SelectMgr_EntityOwner) aDetectedOwner = anAISContext->DetectedOwner(); - myInteractedIO = Handle(AIS_Dimension)::DownCast( aDetectedOwner->Selectable() ); // try to start operation for the detected entity -- 2.39.2