]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
bos #41748 [CEA] Issue in interpolation edition
authorasozinov <alexey.sozinov@opencascade.com>
Thu, 2 May 2024 11:23:23 +0000 (12:23 +0100)
committerChristophe Bourcier <christophe.bourcier@cea.fr>
Wed, 26 Jun 2024 06:55:09 +0000 (08:55 +0200)
Fix problem, when after renaming Interpolation result in Analytical we received message error

src/GeomValidators/GeomValidators_MinObjectsSelected.cpp

index 3cb8e5d626176d8540cdaa421cac225508b23dfe..26f1a852629dd6927b17278fdf014bc3149f083b 100644 (file)
@@ -40,7 +40,8 @@ bool GeomValidators_MinObjectsSelected::isValid(const std::shared_ptr<ModelAPI_F
 // LCOV_EXCL_STOP
   }
   //"Interpolation"
-  if (theFeature->name().substr(0, 6) == L"Interp")
+  // bos#41748:
+  if (theFeature->getKind() == BuildPlugin_Interpolation::ID())
   {
     AttributeStringPtr anAttr =theFeature->string(BuildPlugin_Interpolation::CREATION_METHOD_ID());
     if (anAttr->isInitialized())