]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/SketchPlugin/SketchPlugin_MultiTranslation.cpp
Salome HOME
Issue #1169 : support the width of the copied objects on undo/redo and delete
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_MultiTranslation.cpp
index df58c765db0a0f62a52f68ed0a069d5d60f06766..95cf7d50e514945aaa76f32887001a71a2fe6300 100755 (executable)
@@ -217,7 +217,8 @@ void SketchPlugin_MultiTranslation::erase()
           if(aFeature.get()) {
             AttributeBooleanPtr aBooleanAttr = aFeature->boolean(SketchPlugin_SketchEntity::COPY_ID());
             if(aBooleanAttr.get()) {
-              aBooleanAttr->setValue(false);
+              if (ModelAPI_Session::get()->isOperation()) // if this is not undo or redo
+                aBooleanAttr->setValue(false);
               // Redisplay object as it is not copy anymore.
               ModelAPI_EventCreator::get()->sendUpdated(aRes, aRedispEvent);
             }