for (; anIt != aLast; anIt++) {
deactivate(*anIt, false);
}
for (; anIt != aLast; anIt++) {
deactivate(*anIt, false);
}
- activate(anAISIO, myActiveSelectionModes, false);
+ if (activate(anAISIO, myActiveSelectionModes, false))
+ isActivationChanged = true;
if (!aContext.IsNull() && myEnableUpdateViewer) {
myWorkshop->viewer()->Zfitall();
aContext->UpdateCurrentViewer();
if (!aContext.IsNull() && myEnableUpdateViewer) {
myWorkshop->viewer()->Zfitall();
aContext->UpdateCurrentViewer();
const QIntList& theModes,
const bool theUpdateViewer) const
{
Handle(AIS_InteractiveContext) aContext = AISContext();
if (aContext.IsNull() || theIO.IsNull())
const QIntList& theModes,
const bool theUpdateViewer) const
{
Handle(AIS_InteractiveContext) aContext = AISContext();
if (aContext.IsNull() || theIO.IsNull())
// deactivate object in all modes, which are not in the list of activation
// It seems that after the IO deactivation the selected state of the IO's owners
// is modified in OCC(version: 6.8.0) and the selection of the object later is lost.
// deactivate object in all modes, which are not in the list of activation
// It seems that after the IO deactivation the selected state of the IO's owners
// is modified in OCC(version: 6.8.0) and the selection of the object later is lost.
//aContext->Load(anAISIO, aMode, true);
if (!aModesActivatedForIO.contains(aMode)) {
activateAIS(theIO, aMode, theUpdateViewer);
//aContext->Load(anAISIO, aMode, true);
if (!aModesActivatedForIO.contains(aMode)) {
activateAIS(theIO, aMode, theUpdateViewer);