From f34f516c1aecb30db4084604f58919829aa3de9d Mon Sep 17 00:00:00 2001 From: mpv Date: Thu, 24 Jul 2014 14:49:04 +0400 Subject: [PATCH] Fix sketch field update due to the python script test --- src/SketchPlugin/SketchPlugin_Feature.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SketchPlugin/SketchPlugin_Feature.cpp b/src/SketchPlugin/SketchPlugin_Feature.cpp index ee292a645..acb48d055 100644 --- a/src/SketchPlugin/SketchPlugin_Feature.cpp +++ b/src/SketchPlugin/SketchPlugin_Feature.cpp @@ -15,10 +15,10 @@ SketchPlugin_Sketch* SketchPlugin_Feature::sketch() { if (!mySketch) { // find sketch that references to this feature - int aSketches = document()->size("Construction"); + int aSketches = document()->size(ModelAPI_Feature::group()); for(int a = 0; a < aSketches && !mySketch; a++) { boost::shared_ptr aSketch = boost:: - dynamic_pointer_cast(document()->object("Construction", a)); + dynamic_pointer_cast(document()->object(ModelAPI_Feature::group(), a)); if (aSketch) { std::list aList = aSketch->data()->reflist(SketchPlugin_Sketch::FEATURES_ID())->list(); -- 2.39.2