From: mbs Date: Mon, 29 Apr 2024 14:20:18 +0000 (+0100) Subject: fix STEP import of compounds of solids with colored faces X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=846ad333cf85df23c6f40d5d226b9d7fe59caf15;p=modules%2Fshaper.git fix STEP import of compounds of solids with colored faces --- diff --git a/src/Model/Model_ResultBody.cpp b/src/Model/Model_ResultBody.cpp index 66fbe2c09..6dc5538ef 100644 --- a/src/Model/Model_ResultBody.cpp +++ b/src/Model/Model_ResultBody.cpp @@ -449,7 +449,9 @@ void Model_ResultBody::updateSubs(const std::shared_ptr& 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) {