and the issue #19019 Python dump not loadable
const ResultPtr theCurrent, const GeomShapePtr theValue)
{
ResultPtr aResult = theCurrent;
- if (!std::dynamic_pointer_cast<ModelAPI_ResultBody>(aResult).get())
- return aResult; // construction, groups and other results are not propagated (#19019)
GeomShapePtr aSelectedShape = theValue.get() ? theValue : theCurrent->shape();
std::shared_ptr<Model_Document> aDoc =
std::dynamic_pointer_cast<Model_Document>(owner()->document());
break;
}
}
+ if (!aFindNewContext && !aResults.empty()) {
+ // #19019 : result is concealed by object that contains no such sub-shape
+ return theCurrent;
+ }
}
}
}