X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPrimitivesAPI%2FPrimitivesAPI_Sphere.cpp;h=7143444de124decda845e21f1ec08c9e324eae4f;hb=9afbc5fb015e5ff91689e1ef3f4da286347fbda5;hp=ac429fb80ca0e1fd20843bc58a9c9c15b88baa45;hpb=6587ce676ef427b94c0a52d1e70a0e999d0efe2a;p=modules%2Fshaper.git diff --git a/src/PrimitivesAPI/PrimitivesAPI_Sphere.cpp b/src/PrimitivesAPI/PrimitivesAPI_Sphere.cpp index ac429fb80..7143444de 100644 --- a/src/PrimitivesAPI/PrimitivesAPI_Sphere.cpp +++ b/src/PrimitivesAPI/PrimitivesAPI_Sphere.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2017-2022 CEA/DEN, EDF R&D +// Copyright (C) 2017-2023 CEA, EDF // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -139,9 +139,7 @@ void PrimitivesAPI_Sphere::dump(ModelHighAPI_Dumper& theDumper) const AttributeSelectionPtr anAttrCenterPoint = aBase->selection(PrimitivesPlugin_Sphere::CENTER_POINT_ID()); AttributeDoublePtr anAttrRadius = aBase->real(PrimitivesPlugin_Sphere::RADIUS_ID()); - // for old versions radius value was located in another place, so, use the default 10 - double aRadValue = anAttrRadius->isInitialized() ? anAttrRadius->value() : 10; - theDumper << ", " << anAttrCenterPoint << ", " << aRadValue; + theDumper << ", " << anAttrCenterPoint << ", " << anAttrRadius; } theDumper << ")" << std::endl;