mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-02-26 14:55:37 +05:00
INT PAL 0052624: Drag-n-drop functionality for dimensions has been broken
This commit is contained in:
parent
c881ccaee2
commit
b3d03ada99
@ -697,15 +697,23 @@ bool MeasureGUI_DimensionInteractor::eventFilter( QObject* theObject, QEvent* th
|
|||||||
return false;
|
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
|
// check that there is only one detected entity
|
||||||
anAISContext->InitDetected();
|
//anAISContext->InitDetected();
|
||||||
if ( anAISContext->MoreDetected() )
|
//if ( anAISContext->MoreDetected() )
|
||||||
|
//{
|
||||||
|
// return false;
|
||||||
|
//}
|
||||||
|
|
||||||
|
Handle(SelectMgr_EntityOwner) aDetectedOwner = anAISContext->DetectedOwner();
|
||||||
|
if( aDetectedOwner.IsNull() )
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Handle(SelectMgr_EntityOwner) aDetectedOwner = anAISContext->DetectedOwner();
|
|
||||||
|
|
||||||
myInteractedIO = Handle(AIS_Dimension)::DownCast( aDetectedOwner->Selectable() );
|
myInteractedIO = Handle(AIS_Dimension)::DownCast( aDetectedOwner->Selectable() );
|
||||||
|
|
||||||
// try to start operation for the detected entity
|
// try to start operation for the detected entity
|
||||||
|
Loading…
Reference in New Issue
Block a user