]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Disabled pieces of code which causes runtime error in libSketchSolver.so
authorsbh <sergey.belash@opencascade.com>
Wed, 1 Apr 2015 17:09:32 +0000 (20:09 +0300)
committersbh <sergey.belash@opencascade.com>
Wed, 1 Apr 2015 17:09:32 +0000 (20:09 +0300)
undefined symbol: _ZTI18SketchPlugin_Point (./libSketchSolver.so)

src/SketchSolver/SketchSolver_ConstraintGroup.cpp

index f54067afa647d3c20c62e7a9d85a5bff5a328ade..b5a33d8d2d50d13a4c7d272ad4761a6fcb823552 100644 (file)
@@ -507,9 +507,10 @@ bool SketchSolver_ConstraintGroup::changeRigidConstraint(
         std::dynamic_pointer_cast<GeomDataAPI_Point>(aConstrAttr->attr());
     std::shared_ptr<GeomDataAPI_Point2D> aPoint2D =
         std::dynamic_pointer_cast<GeomDataAPI_Point2D>(aConstrAttr->attr());
-    std::shared_ptr<SketchPlugin_Point> aSketchPoint = 
-        std::dynamic_pointer_cast<SketchPlugin_Point>(aFeature);
-    if (aPoint || aPoint2D || aSketchPoint) {
+//    std::shared_ptr<SketchPlugin_Point> aSketchPoint =
+//        std::dynamic_pointer_cast<SketchPlugin_Point>(aFeature);
+//    if (aPoint || aPoint2D || aSketchPoint) {
+    if (aPoint || aPoint2D) {
       // Create SolveSpace constraint structure
       Slvs_Constraint aConstraint = Slvs_MakeConstraint(
           ++myConstrMaxID, myID, aConstrType, myWorkplane.h, 0.0,