mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-05 18:16:23 +03:00
0031400: Application Framework, TPrsStd_AISPresentation - Ocaf selection mechanism doesn't allow multiple selection
TPrsStd_AISPresentation::ActivateSelectionMode() uses Multiple enumeration for definition of the selection mode instead of GlobalOrLocal.
This commit is contained in:
parent
3d60d73f76
commit
ae87bb87d0
@ -1052,7 +1052,7 @@ void TPrsStd_AISPresentation::ActivateSelectionMode()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!isActivated)
|
if (!isActivated)
|
||||||
aContext->Activate(myAIS, aSelectionMode, Standard_False);
|
aContext->SetSelectionModeActive(myAIS, aSelectionMode, Standard_True, AIS_SelectionModesConcurrency_Multiple);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -1061,7 +1061,7 @@ void TPrsStd_AISPresentation::ActivateSelectionMode()
|
|||||||
{
|
{
|
||||||
const Standard_Integer aSelectionMode = SelectionMode (iSelMode);
|
const Standard_Integer aSelectionMode = SelectionMode (iSelMode);
|
||||||
aContext->SetSelectionModeActive (myAIS, aSelectionMode, Standard_True/*activate*/,
|
aContext->SetSelectionModeActive (myAIS, aSelectionMode, Standard_True/*activate*/,
|
||||||
iSelMode == 1 ? AIS_SelectionModesConcurrency_Single : AIS_SelectionModesConcurrency_GlobalOrLocal);
|
iSelMode == 1 ? AIS_SelectionModesConcurrency_Single : AIS_SelectionModesConcurrency_Multiple);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user