From 7243ff12341b6d0507dcde8d60713c18b0bdfb51 Mon Sep 17 00:00:00 2001 From: azv Date: Thu, 6 Jun 2019 14:28:40 +0300 Subject: [PATCH] Fix crash while loading PlaneGCS connection plugin. --- src/SketchSolver/SketchSolver_Manager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SketchSolver/SketchSolver_Manager.cpp b/src/SketchSolver/SketchSolver_Manager.cpp index b4c6765d5..00be4b13e 100644 --- a/src/SketchSolver/SketchSolver_Manager.cpp +++ b/src/SketchSolver/SketchSolver_Manager.cpp @@ -79,9 +79,9 @@ static void featuresOrderedByType(const std::set& theOriginalFeatures } } else { - std::shared_ptr aSketch = - std::dynamic_pointer_cast(*aFeatIter); - if (aSketch) + CompositeFeaturePtr aSketch = + std::dynamic_pointer_cast(*aFeatIter); + if (aSketch && aSketch->getKind() == SketchPlugin_Sketch::ID()) theSketch = aSketch; } } -- 2.39.2