From: mpv Date: Thu, 24 Jul 2014 10:49:04 +0000 (+0400) Subject: Fix sketch field update due to the python script test X-Git-Tag: V_0.4.4~146^2~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f34f516c1aecb30db4084604f58919829aa3de9d;p=modules%2Fshaper.git Fix sketch field update due to the python script test --- 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();