return aFeature;
}
-
void Model_Document::refsToFeature(FeaturePtr theFeature,
std::set<std::shared_ptr<ModelAPI_Feature> >& theRefs, const bool isSendError)
{
return isSub(theMain, aParent);
}
-
void Model_Document::moveFeature(FeaturePtr theMoved, FeaturePtr theAfterThis)
{
bool aCurrentUp = theMoved == currentFeature(false);
return ResultPtr(); // not found
}
-
void Model_Document::addNamingName(const TDF_Label theLabel, std::string theName)
{
std::map<std::string, std::list<TDF_Label> >::iterator aFind = myNamingNames.find(theName);
}
aId++;
}
+ // #2813 : make the current feature the latest in the document
+ std::list<FeaturePtr> allFeatures = myFeature->document()->allFeatures();
+ if (!allFeatures.empty()) {
+ myFeature->document()->setCurrentFeature(*(allFeatures.rbegin()), true);
+ }
return true;
}