From: azv Date: Thu, 5 May 2016 05:10:58 +0000 (+0300) Subject: Revert "Make the copies fixed in multi-rotation, multi-translation (issue #1471)" X-Git-Tag: V_2.3.0~28 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c5e7539d40404e80767c8051c4dd7f39e0a82a12;p=modules%2Fshaper.git Revert "Make the copies fixed in multi-rotation, multi-translation (issue #1471)" This reverts commit ad6e991b0289e8dc50624c9d45bc35363644c81d. --- diff --git a/src/SketchSolver/SketchSolver_Storage.cpp b/src/SketchSolver/SketchSolver_Storage.cpp index d77c0d702..c63d28e43 100644 --- a/src/SketchSolver/SketchSolver_Storage.cpp +++ b/src/SketchSolver/SketchSolver_Storage.cpp @@ -175,9 +175,9 @@ bool SketchSolver_Storage::update(FeaturePtr theFeature, const GroupID& theGroup BuilderPtr aBuilder = SketchSolver_Manager::instance()->builder(); GroupID aGroup = theGroup != GID_UNKNOWN ? theGroup : myGroupID; // Check external feature - std::shared_ptr aSketchFeature = - std::dynamic_pointer_cast(theFeature); - if (aSketchFeature && (aSketchFeature->isExternal() || aSketchFeature->isCopy())) + std::shared_ptr aSketchFeature = + std::dynamic_pointer_cast(theFeature); + if (aSketchFeature && aSketchFeature->isExternal()) aGroup = GID_OUTOFGROUP; aRelated = aBuilder->createFeature(theFeature, aSubs, aGroup); if (!aRelated) @@ -221,9 +221,9 @@ bool SketchSolver_Storage::update(AttributePtr theAttribute, const GroupID& theG BuilderPtr aBuilder = SketchSolver_Manager::instance()->builder(); GroupID aGroup = theGroup != GID_UNKNOWN ? theGroup : myGroupID; // Check attribute of external features - std::shared_ptr aSketchFeature = - std::dynamic_pointer_cast(theAttribute->owner()); - if (aSketchFeature && (aSketchFeature->isExternal() || aSketchFeature->isCopy())) + std::shared_ptr aSketchFeature = + std::dynamic_pointer_cast(theAttribute->owner()); + if (aSketchFeature && aSketchFeature->isExternal()) aGroup = GID_OUTOFGROUP; aRelated = aBuilder->createAttribute(anAttribute, aGroup); if (!aRelated)