From: vsv Date: Wed, 8 Jul 2015 12:21:21 +0000 (+0300) Subject: Hide sub-objects of sketcher X-Git-Tag: V_1.3.0~77 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c34eecb3e188cf8b533505764f48d4e034088d86;p=modules%2Fshaper.git Hide sub-objects of sketcher --- diff --git a/src/SketchPlugin/SketchPlugin_Sketch.cpp b/src/SketchPlugin/SketchPlugin_Sketch.cpp index 84170754a..d332177c3 100644 --- a/src/SketchPlugin/SketchPlugin_Sketch.cpp +++ b/src/SketchPlugin/SketchPlugin_Sketch.cpp @@ -161,11 +161,16 @@ void SketchPlugin_Sketch::removeFeature(std::shared_ptr theFea int SketchPlugin_Sketch::numberOfSubs(bool forTree) const { + if (forTree) + return 0; return data()->reflist(SketchPlugin_Sketch::FEATURES_ID())->size(); } std::shared_ptr SketchPlugin_Sketch::subFeature(const int theIndex, bool forTree) const { + if (forTree) + return FeaturePtr(); + ObjectPtr anObj = data()->reflist(SketchPlugin_Sketch::FEATURES_ID())->object(theIndex); return std::dynamic_pointer_cast(anObj); }