From: azv Date: Wed, 29 May 2019 05:44:15 +0000 (+0300) Subject: Initialize the default method of Recover feature. X-Git-Tag: VEDF2019Lot4~101^2~56 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=31e2cf2bc019fab204d82cb916e1358730c6cb63;p=modules%2Fshaper.git Initialize the default method of Recover feature. --- diff --git a/src/FeaturesPlugin/FeaturesPlugin_Recover.cpp b/src/FeaturesPlugin/FeaturesPlugin_Recover.cpp index 1721e05b6..4cf0a75c3 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Recover.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Recover.cpp @@ -44,6 +44,8 @@ void FeaturesPlugin_Recover::initAttributes() data()->addAttribute(METHOD(), ModelAPI_AttributeString::typeId()); ModelAPI_Session::get()->validators()->registerNotObligatory(getKind(), METHOD()); + // set default method for recovering + string(METHOD())->setValue(METHOD_DEFAULT()); } void FeaturesPlugin_Recover::execute()