From: dbv Date: Wed, 20 Apr 2016 11:51:01 +0000 (+0300) Subject: Fix for plane selection. Selection attribute return empty shape for construction. X-Git-Tag: V_2.3.0~172 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=46088d9449eb1f2453084ab22b576d87378405da;p=modules%2Fshaper.git Fix for plane selection. Selection attribute return empty shape for construction. --- diff --git a/src/Model/Model_AttributeSelection.cpp b/src/Model/Model_AttributeSelection.cpp index 960305ca6..be028e276 100644 --- a/src/Model/Model_AttributeSelection.cpp +++ b/src/Model/Model_AttributeSelection.cpp @@ -185,8 +185,8 @@ std::shared_ptr Model_AttributeSelection::value() if (myTmpContext.get() || myTmpSubShape.get()) { ResultConstructionPtr aResulConstruction = std::dynamic_pointer_cast(myTmpContext); if(aResulConstruction.get()) { - // it is just reference to construction, nothing is in value - return aResult; + // it is just reference to construction. + return myTmpSubShape; } return myTmpSubShape.get() ? myTmpSubShape : myTmpContext->shape(); }