mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-26 18:10:35 +05:00
Debug.
This commit is contained in:
parent
c75c1e3d11
commit
6bad26cf66
@ -776,12 +776,15 @@ void CurveCreator_Widget::onMousePress( SUIT_ViewWindow* theViewWindow, QMouseEv
|
||||
else
|
||||
ic->Select(); // New selection
|
||||
|
||||
TopoDS_Shape aShape;
|
||||
|
||||
ic->InitSelected();
|
||||
if ( ic->MoreSelected() ) {
|
||||
TopoDS_Shape aShape = ic->SelectedShape();
|
||||
if ( !aShape.IsNull() && aShape.ShapeType() == TopAbs_VERTEX )
|
||||
aPnt = BRep_Tool::Pnt( TopoDS::Vertex( ic->SelectedShape() ) );
|
||||
} else {
|
||||
if ( ic->MoreSelected() )
|
||||
aShape = ic->SelectedShape();
|
||||
|
||||
if ( !aShape.IsNull() && aShape.ShapeType() == TopAbs_VERTEX )
|
||||
aPnt = BRep_Tool::Pnt( TopoDS::Vertex( ic->SelectedShape() ) );
|
||||
else {
|
||||
OCCViewer_ViewPort3d* vp = ((OCCViewer_ViewWindow*)theViewWindow)->getViewPort();
|
||||
aPnt = GEOMUtils::ConvertClickToPoint( pe->x(), pe->y(), vp->getView() );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user