[PartDesign AllowCompound] recompute all features when AllowCompound property is changed either from true to false or from false to true

This commit is contained in:
mwganson
2024-10-07 08:56:25 -05:00
committed by Chris Hennes
parent 3d400211da
commit fd8ef079d0
+4 -4
View File
@@ -465,11 +465,11 @@ void Body::onChanged(const App::Property* prop) {
else if (prop == &AllowCompound) {
// As disallowing compounds can break the model we need to recompute the whole tree.
// This will inform user about first place where there is more than one solid.
if (!AllowCompound.getValue()) {
for (auto feature : getFullModel()) {
feature->enforceRecompute();
}
// On allowing compounds we must also recompute the entire feature tree
for (auto feature : getFullModel()) {
feature->enforceRecompute();
}
}
}