-// Copyright (C) 2014-2020 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2023 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
isModified = true;
}
else {
+ if (myFeature->firstResult().get()) {
+ PartSet_Module::setTexture(aPresentation, myFeature->firstResult());
+ }
anOperationPrs->Redisplay();
isModified = true;
aRedisplayed = true;
{
if (!myErrorShapes.IsNull()) {
Handle(AIS_InteractiveContext) aContext = myWorkshop->viewer()->AISContext();
- if (aContext->IsDisplayed(myErrorShapes))
+ if (aContext->IsDisplayed(myErrorShapes)) {
aContext->Remove(myErrorShapes, true);
+ myErrorShapes.Nullify();
+ }
}
}
else {
if (!myErrorShapes.IsNull()) {
aContext->Remove(myErrorShapes, true);
+ myErrorShapes.Nullify();
}
}
}