X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FBuildAPI%2FBuildAPI_Interpolation.cpp;h=6333fa0ae6e345bf6cd8a095541c6d5993d6c7ef;hb=5a602b4b32487f2922fa28e60e40b14454a503a3;hp=201151d82c8f9c86c89f900ee088949a00dc9db3;hpb=704b13912d9014fca20c36fe91a389b9d12353e8;p=modules%2Fshaper.git diff --git a/src/BuildAPI/BuildAPI_Interpolation.cpp b/src/BuildAPI/BuildAPI_Interpolation.cpp index 201151d82..6333fa0ae 100644 --- a/src/BuildAPI/BuildAPI_Interpolation.cpp +++ b/src/BuildAPI/BuildAPI_Interpolation.cpp @@ -115,15 +115,18 @@ void BuildAPI_Interpolation::dump(ModelHighAPI_Dumper& theDumper) const AttributeSelectionListPtr anAttrBaseObjects = aBase->selectionList(BuildPlugin_Interpolation::BASE_OBJECTS_ID()); - AttributeSelectionPtr anAttrStartTangent = - aBase->selection(BuildPlugin_Interpolation::TANGENT_START_ID()); - AttributeSelectionPtr anAttrEndTangent = - aBase->selection(BuildPlugin_Interpolation::TANGENT_END_ID()); theDumper << aBase << " = model.addInterpolation(" << aPartName << ", " << anAttrBaseObjects << ", "; - if (anAttrStartTangent->isInitialized() && anAttrEndTangent->isInitialized()) { + AttributeStringPtr useTangentsAttr = useTangents(); + std::string useTangents = useTangentsAttr->value(); + if (!useTangents.empty()) { + AttributeSelectionPtr anAttrStartTangent = + aBase->selection(BuildPlugin_Interpolation::TANGENT_START_ID()); + AttributeSelectionPtr anAttrEndTangent = + aBase->selection(BuildPlugin_Interpolation::TANGENT_END_ID()); + theDumper << anAttrStartTangent << ", " << anAttrEndTangent << ", "; }