The problem was in not-disabling of translation feature when the original part was activated.
{
return ModelAPI_ResultPart::group();
}
-
-bool ModelAPI_ResultPart::isConcealed()
-{
- //return false;
- return ModelAPI_Result::isConcealed(); // the way with different results is applied
-}
return RESULT_BODY_COLOR;
}
- // Part result can not be cencealed, even by the movement features
- MODELAPI_EXPORT virtual bool isConcealed();
-
/// Returns the part-document of this result
virtual std::shared_ptr<ModelAPI_Document> partDoc() = 0;
// to optimize and avoid of crash on partset document close
// (don't touch the sub-document structure)
if (theMain != theSub) {
- for (int a = theMain->size(ModelAPI_Feature::group()) - 1; a >= 0; a--) {
+ // iteration from top to bottom to avoid finding the movement documents before the original
+ int aSize = theMain->size(ModelAPI_Feature::group());
+ for (int a = 0; a < aSize; a++) {
FeaturePtr aPartFeat = std::dynamic_pointer_cast<ModelAPI_Feature>(
theMain->object(ModelAPI_Feature::group(), a));
if (aPartFeat.get()) {