]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix sketch field update due to the python script test
authormpv <mikhail.ponikarov@opencascade.com>
Thu, 24 Jul 2014 10:49:04 +0000 (14:49 +0400)
committermpv <mikhail.ponikarov@opencascade.com>
Thu, 24 Jul 2014 10:49:04 +0000 (14:49 +0400)
src/SketchPlugin/SketchPlugin_Feature.cpp

index ee292a645dd5e1b5e6cd9d35cea28db66c262c2d..acb48d0550b20fd1dd5a8a1ba8b8e427089593ad 100644 (file)
@@ -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<SketchPlugin_Sketch> aSketch = boost::
-        dynamic_pointer_cast<SketchPlugin_Sketch>(document()->object("Construction", a));
+        dynamic_pointer_cast<SketchPlugin_Sketch>(document()->object(ModelAPI_Feature::group(), a));
       if (aSketch) {
         std::list<ObjectPtr> aList =
           aSketch->data()->reflist(SketchPlugin_Sketch::FEATURES_ID())->list();