From 76124b76e23a10697d5174719d4c64d808e8d0f7 Mon Sep 17 00:00:00 2001 From: Clarisse Genrault Date: Wed, 4 Jan 2017 12:25:37 +0100 Subject: [PATCH] Debug. --- src/FeaturesAPI/FeaturesAPI_Translation.cpp | 2 +- src/FeaturesAPI/Test/APIParam_Translation.py | 2 +- src/FeaturesPlugin/FeaturesPlugin_Translation.cpp | 3 ++- src/GeomAlgoAPI/GeomAlgoAPI_Translation.h | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/FeaturesAPI/FeaturesAPI_Translation.cpp b/src/FeaturesAPI/FeaturesAPI_Translation.cpp index ec05c3cef..88cb99e87 100644 --- a/src/FeaturesAPI/FeaturesAPI_Translation.cpp +++ b/src/FeaturesAPI/FeaturesAPI_Translation.cpp @@ -123,7 +123,7 @@ void FeaturesAPI_Translation::dump(ModelHighAPI_Dumper& theDumper) const std::string aCreationMethod = aBase->string(FeaturesPlugin_Translation::CREATION_METHOD())->value(); - if(aCreationMethod == FeaturesPlugin_Translation::CREATION_METHOD_BY_DISTANCE()) { + if (aCreationMethod == FeaturesPlugin_Translation::CREATION_METHOD_BY_DISTANCE()) { AttributeSelectionPtr anAttrAxis = aBase->selection(FeaturesPlugin_Translation::AXIS_OBJECT_ID()); AttributeDoublePtr anAttrDistance = diff --git a/src/FeaturesAPI/Test/APIParam_Translation.py b/src/FeaturesAPI/Test/APIParam_Translation.py index 6795c25b8..f5ad81dce 100644 --- a/src/FeaturesAPI/Test/APIParam_Translation.py +++ b/src/FeaturesAPI/Test/APIParam_Translation.py @@ -40,4 +40,4 @@ aPoint1 = model.addPoint(aDocument, 0, 0, 0).result() aPoint2 = model.addPoint(aDocument, 10, 10, 0).result() aTranslation3 = model.addTranslation(aDocument, [model.selection("SOLID", "Box_1_1")], aPoint1, aPoint2).result() aSession.finishOperation() -assert (aTranslation2 is not None) \ No newline at end of file +assert (aTranslation3 is not None) \ No newline at end of file diff --git a/src/FeaturesPlugin/FeaturesPlugin_Translation.cpp b/src/FeaturesPlugin/FeaturesPlugin_Translation.cpp index 4bd8aea03..4e7dcef66 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Translation.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Translation.cpp @@ -31,7 +31,8 @@ FeaturesPlugin_Translation::FeaturesPlugin_Translation() //================================================================================================= void FeaturesPlugin_Translation::initAttributes() { - data()->addAttribute(CREATION_METHOD(), ModelAPI_AttributeString::typeId()); + data()->addAttribute(FeaturesPlugin_Translation::CREATION_METHOD(), + ModelAPI_AttributeString::typeId()); AttributeSelectionListPtr aSelection = std::dynamic_pointer_cast(data()->addAttribute( diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Translation.h b/src/GeomAlgoAPI/GeomAlgoAPI_Translation.h index 62252139b..3e06193a3 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Translation.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Translation.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D +// Copyright (C) 2014-2016 CEA/DEN, EDF R&D // File: GeomAlgoAPI_Translation.h // Created: 8 June 2015 -- 2.39.2