From: vsv Date: Mon, 28 Jul 2014 07:52:38 +0000 (+0400) Subject: Draw AIS presentations for perpendicular and parallel constraints X-Git-Tag: V_0.4.4~139^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3509531d8e710a859d04eed3e51c4b85dcc56320;p=modules%2Fshaper.git Draw AIS presentations for perpendicular and parallel constraints --- diff --git a/src/SketchPlugin/SketchPlugin_ConstraintParallel.cpp b/src/SketchPlugin/SketchPlugin_ConstraintParallel.cpp index 0d73cba02..4a971e8c7 100644 --- a/src/SketchPlugin/SketchPlugin_ConstraintParallel.cpp +++ b/src/SketchPlugin/SketchPlugin_ConstraintParallel.cpp @@ -63,10 +63,10 @@ boost::shared_ptr SketchPlugin_ConstraintParallel::getAISObje boost::shared_ptr aPlane = sketch()->plane(); boost::shared_ptr aLine1, aLine2; boost::shared_ptr aConst1 = - boost::dynamic_pointer_cast(aLine1Feature->firstResult()); + boost::dynamic_pointer_cast(anAttr1->object()); if (aConst1) aLine1 = aConst1->shape(); boost::shared_ptr aConst2 = - boost::dynamic_pointer_cast(aLine1Feature->firstResult()); + boost::dynamic_pointer_cast(anAttr2->object()); if (aConst2) aLine2 = aConst2->shape(); boost::shared_ptr aFlyoutAttr = diff --git a/src/SketchPlugin/SketchPlugin_ConstraintPerpendicular.cpp b/src/SketchPlugin/SketchPlugin_ConstraintPerpendicular.cpp index 0aa05e89d..8985eb061 100644 --- a/src/SketchPlugin/SketchPlugin_ConstraintPerpendicular.cpp +++ b/src/SketchPlugin/SketchPlugin_ConstraintPerpendicular.cpp @@ -63,10 +63,10 @@ boost::shared_ptr SketchPlugin_ConstraintPerpendicular::getAI boost::shared_ptr aPlane = sketch()->plane(); boost::shared_ptr aLine1, aLine2; boost::shared_ptr aConst1 = - boost::dynamic_pointer_cast(aLine1Feature->firstResult()); + boost::dynamic_pointer_cast(anAttr1->object()); if (aConst1) aLine1 = aConst1->shape(); boost::shared_ptr aConst2 = - boost::dynamic_pointer_cast(aLine1Feature->firstResult()); + boost::dynamic_pointer_cast(anAttr2->object()); if (aConst2) aLine2 = aConst2->shape(); boost::shared_ptr anAIS = thePrevious;