From 846ad333cf85df23c6f40d5d226b9d7fe59caf15 Mon Sep 17 00:00:00 2001 From: mbs Date: Mon, 29 Apr 2024 15:20:18 +0100 Subject: [PATCH] fix STEP import of compounds of solids with colored faces --- src/Model/Model_ResultBody.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) { -- 2.39.2