X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelAPI%2FModelAPI_Feature.cpp;h=94b1a64e8fb1f79fe1512faf8c6a7641aa085041;hb=f626fe578ad8bf82242d71b583e96f846e628596;hp=14a1e396f55f0ad3c252e315a7c2c8f93d1937d0;hpb=979ad873ba8ebe5ec3c8e6eae08f359b94768766;p=modules%2Fshaper.git diff --git a/src/ModelAPI/ModelAPI_Feature.cpp b/src/ModelAPI/ModelAPI_Feature.cpp index 14a1e396f..94b1a64e8 100644 --- a/src/ModelAPI/ModelAPI_Feature.cpp +++ b/src/ModelAPI/ModelAPI_Feature.cpp @@ -20,6 +20,11 @@ boost::shared_ptr ModelAPI_Feature::firstResult() return myResults.empty() ? boost::shared_ptr() : *(myResults.begin()); } +boost::shared_ptr ModelAPI_Feature::lastResult() +{ + return myResults.empty() ? boost::shared_ptr() : *(myResults.rbegin()); +} + void ModelAPI_Feature::setResult(const boost::shared_ptr& theResult) { if (firstResult() == theResult) { // just updated