]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
fix STEP import of compounds of solids with colored faces
authormbs <martin.bernhard@opencascade.com>
Mon, 29 Apr 2024 14:20:18 +0000 (15:20 +0100)
committermbs <martin.bernhard@opencascade.com>
Thu, 6 Jun 2024 15:01:00 +0000 (16:01 +0100)
src/Model/Model_ResultBody.cpp

index 66fbe2c0913dfd33e26e20e8efbe14a0815f9ee6..6dc5538ef5046103f857671c1b94c66f44f3bfe2 100644 (file)
@@ -449,7 +449,9 @@ void Model_ResultBody::updateSubs(const std::shared_ptr<GeomAPI_Shape>& theThisS
         aECreator->sendUpdated(aSub, EVENT_DISP);
         aECreator->sendUpdated(aSub, EVENT_UPD);
       }
-      aSub->setDisabled(aSub, isDisabled());
+      // Do NOT query/set the Disabled flag, as it has a negative side effect
+      // by recursively calling updateSubs() on all sub shapes already!
+      //aSub->setDisabled(aSub, isDisabled());
     }
     // erase left, unused results
     while(mySubs.size() > aSubIndex) {