X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROCurveCreator%2FCurveCreator_Utils.cxx;h=12d7ee7d84cf92d6a17a80aef4630e1eaf760122;hb=1e9be94cc5ff4ad886099c507462d5b70f6d71f9;hp=73b429b446db6a5a20047c7bf34a2f5c4d1163e4;hpb=4ddef4dfa7b09c497d8c2bd05557821d5fe5da81;p=modules%2Fhydro.git diff --git a/src/HYDROCurveCreator/CurveCreator_Utils.cxx b/src/HYDROCurveCreator/CurveCreator_Utils.cxx index 73b429b4..12d7ee7d 100644 --- a/src/HYDROCurveCreator/CurveCreator_Utils.cxx +++ b/src/HYDROCurveCreator/CurveCreator_Utils.cxx @@ -119,10 +119,14 @@ std::list CurveCreator_Utils::getSelectedPoints( Handle(AIS_InteractiveCo // function : setLocalPointContext // purpose : Open/close the viewer local context //======================================================================= +//#define USE_COMPOUND void CurveCreator_Utils::setLocalPointContext( Handle(AIS_InteractiveContext) theContext, const bool theOpen ) { +#ifdef USE_COMPOUND + return; +#endif if ( !theContext ) return; @@ -146,8 +150,8 @@ void CurveCreator_Utils::setLocalPointContext( if ( anAIS->IsKind( STANDARD_TYPE( AIS_Shape ) ) ) { theContext->Load( anAIS, -1/*selection mode*/, true/*allow decomposition*/ ); - theContext->Activate( anAIS, AIS_Shape::SelectionMode( (TopAbs_ShapeEnum)TopAbs_WIRE ) ); - //theContext->Activate( anAIS, AIS_Shape::SelectionMode( (TopAbs_ShapeEnum)TopAbs_VERTEX ) ); + //theContext->Activate( anAIS, AIS_Shape::SelectionMode( (TopAbs_ShapeEnum)TopAbs_WIRE ) ); + theContext->Activate( anAIS, AIS_Shape::SelectionMode( (TopAbs_ShapeEnum)TopAbs_VERTEX ) ); } else if ( anAIS->DynamicType() != STANDARD_TYPE(AIS_Trihedron) ) {