From d700611df972aa2eeaf353d8b2608c9542ca9680 Mon Sep 17 00:00:00 2001 From: dbv Date: Mon, 15 Aug 2016 15:53:32 +0300 Subject: [PATCH] Issue #1648: Dump Python in the High Level Parameterized Geometry API Dump for FeaturesAPI_RemoveSubShapes --- src/FeaturesAPI/FeaturesAPI_RemoveSubShapes.cpp | 2 +- src/PythonAPI/model/features/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FeaturesAPI/FeaturesAPI_RemoveSubShapes.cpp b/src/FeaturesAPI/FeaturesAPI_RemoveSubShapes.cpp index d7418c52b..b5dd098c9 100644 --- a/src/FeaturesAPI/FeaturesAPI_RemoveSubShapes.cpp +++ b/src/FeaturesAPI/FeaturesAPI_RemoveSubShapes.cpp @@ -60,7 +60,7 @@ void FeaturesAPI_RemoveSubShapes::dump(ModelHighAPI_Dumper& theDumper) const AttributeSelectionListPtr anAttrSubShapes = aBase->selectionList(FeaturesPlugin_RemoveSubShapes::SUBSHAPES_ID()); theDumper << aBase << " = model.addRemoveSubShapes(" << aDocName << ", " << anAttrBaseShape << ")" << std::endl; - theDumper << aDocName << ".setSubShapesToKeep(" << anAttrSubShapes << ")" << std::endl; + theDumper << aBase << ".setSubShapesToKeep(" << anAttrSubShapes << ")" << std::endl; } //================================================================================================== diff --git a/src/PythonAPI/model/features/__init__.py b/src/PythonAPI/model/features/__init__.py index ad4104ea1..e7ff9b1c5 100644 --- a/src/PythonAPI/model/features/__init__.py +++ b/src/PythonAPI/model/features/__init__.py @@ -6,5 +6,5 @@ from FeaturesAPI import addExtrusion, addExtrusionCut, addExtrusionFuse from FeaturesAPI import addRevolution, addRevolutionCut, addRevolutionFuse from FeaturesAPI import addPipe from FeaturesAPI import addCut, addFuse, addCommon, addSmash, addFill -from FeaturesAPI import addIntersection, addPartition +from FeaturesAPI import addIntersection, addPartition, addRemoveSubShapes from FeaturesAPI import addGroup, addRecover -- 2.39.2