mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-22 15:40:32 +05:00
Fix for the bug IPAL22807:"TC6.4.0: input objects are not highlighted in 3D viewer"
This commit is contained in:
parent
d1d965da47
commit
c6fb7e57b2
@ -252,23 +252,23 @@ void PrimitiveGUI_BoxDlg::SelectionIntoArgument()
|
|||||||
|
|
||||||
myEditCurrentArgument->setText(aName);
|
myEditCurrentArgument->setText(aName);
|
||||||
|
|
||||||
// clear selection
|
|
||||||
disconnect(myGeomGUI->getApp()->selectionMgr(), 0, this, 0);
|
|
||||||
myGeomGUI->getApp()->selectionMgr()->clearSelected();
|
|
||||||
connect(myGeomGUI->getApp()->selectionMgr(), SIGNAL(currentSelectionChanged()),
|
|
||||||
this, SLOT(SelectionIntoArgument()));
|
|
||||||
|
|
||||||
if (myEditCurrentArgument == GroupPoints->LineEdit1) {
|
if (myEditCurrentArgument == GroupPoints->LineEdit1) {
|
||||||
myPoint1 = aSelectedObject;
|
myPoint1 = aSelectedObject;
|
||||||
if (myPoint1 && !myPoint2)
|
if (myPoint1 && !myPoint2)
|
||||||
GroupPoints->PushButton2->click();
|
GroupPoints->PushButton2->click();
|
||||||
}
|
}
|
||||||
else if (myEditCurrentArgument == GroupPoints->LineEdit2) {
|
else if (myEditCurrentArgument == GroupPoints->LineEdit2) {
|
||||||
myPoint2 = aSelectedObject;
|
myPoint2 = aSelectedObject;
|
||||||
if (myPoint2 && !myPoint1)
|
if (myPoint2 && !myPoint1)
|
||||||
GroupPoints->PushButton1->click();
|
GroupPoints->PushButton1->click();
|
||||||
|
}
|
||||||
|
if ((myPoint1 && !myPoint2) || (myPoint2 && !myPoint1)) {
|
||||||
|
// clear selection
|
||||||
|
disconnect(myGeomGUI->getApp()->selectionMgr(), 0, this, 0);
|
||||||
|
myGeomGUI->getApp()->selectionMgr()->clearSelected();
|
||||||
|
connect(myGeomGUI->getApp()->selectionMgr(), SIGNAL(currentSelectionChanged()),
|
||||||
|
this, SLOT(SelectionIntoArgument()));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
displayPreview(true);
|
displayPreview(true);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user