From 31e2cf2bc019fab204d82cb916e1358730c6cb63 Mon Sep 17 00:00:00 2001 From: azv Date: Wed, 29 May 2019 08:44:15 +0300 Subject: [PATCH] Initialize the default method of Recover feature. --- src/FeaturesPlugin/FeaturesPlugin_Recover.cpp | 2 ++ 1 file changed, 2 insertions(+) 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() -- 2.39.2