]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for naming update problem with partition created with a plane.
authormpv <mpv@opencascade.com>
Fri, 20 Oct 2017 05:54:45 +0000 (08:54 +0300)
committermpv <mpv@opencascade.com>
Fri, 20 Oct 2017 05:54:45 +0000 (08:54 +0300)
src/Model/Model_AttributeSelection.cpp

index 95af31053e7cc424e589db0b5b2c09d2ba2b746b..c29cca22998cc6c335de633a089f0a77f9eb0baa 100644 (file)
@@ -583,6 +583,11 @@ bool Model_AttributeSelection::update()
       bool aModified = true;
       bool aValid = aConstructionContext->update(anIndex->Get(), owner()->document(), aModified);
       setInvalidIfFalse(aSelLab, aValid);
+      if (aConstructionContext->isInfinite()) {
+        // Update the selected shape.
+        TNaming_Builder aBuilder(aSelLab);
+        aBuilder.Generated(aConstructionContext->shape()->impl<TopoDS_Shape>());
+      }
       if (aModified)
         owner()->data()->sendAttributeUpdated(this);
       return aValid;