From 7e8909f740a5acbf58cb05527fa87bf007bf4ba6 Mon Sep 17 00:00:00 2001 From: azv Date: Thu, 5 May 2016 10:09:33 +0300 Subject: [PATCH] Fix problems happened during unit testing --- .../SolveSpaceSolver/SolveSpaceSolver_Builder.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/SketchSolver/SolveSpaceSolver/SolveSpaceSolver_Builder.cpp b/src/SketchSolver/SolveSpaceSolver/SolveSpaceSolver_Builder.cpp index bc86af89d..9792467c1 100644 --- a/src/SketchSolver/SolveSpaceSolver/SolveSpaceSolver_Builder.cpp +++ b/src/SketchSolver/SolveSpaceSolver/SolveSpaceSolver_Builder.cpp @@ -206,8 +206,7 @@ std::list SolveSpaceSolver_Builder::createMirror( std::list aResult; std::list aConstrAttrList; if (theEntity1->type() == ENTITY_POINT) { - if (theEntity2->group() == theGroupID) // theEntity2 is not fixed - makeMirrorPoints(theEntity1, theEntity2, theMirrorLine); + makeMirrorPoints(theEntity1, theEntity2, theMirrorLine); aConstraint = Slvs_MakeConstraint( SLVS_E_UNKNOWN, (Slvs_hGroup)theGroupID, SLVS_C_SYMMETRIC_LINE, (Slvs_hEntity)theSketchID, @@ -264,8 +263,7 @@ std::list SolveSpaceSolver_Builder::createMirror( std::list aMrrList; std::list::const_iterator anIt1 = theEntity1->subEntities().begin(); std::list::const_iterator anIt2 = theEntity2->subEntities().begin(); - if ((*anIt2)->group() == theGroupID) // mirrored point is not fixed - makeMirrorPoints(*anIt1, *anIt2, theMirrorLine); + makeMirrorPoints(*anIt1, *anIt2, theMirrorLine); // Workaround to avoid problems in SolveSpace. // The symmetry of two arcs will be done using symmetry of three points on these arcs: -- 2.39.2