From: dbv Date: Wed, 20 Apr 2016 07:22:33 +0000 (+0300) Subject: Fix for plane selection. Selection attribute return empty shape for construction. X-Git-Tag: V_2.3.0~176 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5e9e4ca3874693f8b6ef2fe62e01420c2d70138b;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 25f5d3533..960305ca6 100644 --- a/src/Model/Model_AttributeSelection.cpp +++ b/src/Model/Model_AttributeSelection.cpp @@ -181,11 +181,16 @@ void Model_AttributeSelection::setValue(const ResultPtr& theContext, std::shared_ptr Model_AttributeSelection::value() { + GeomShapePtr aResult; 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; + } return myTmpSubShape.get() ? myTmpSubShape : myTmpContext->shape(); } - std::shared_ptr aResult; TDF_Label aSelLab = selectionLabel(); if (aSelLab.IsAttribute(kINVALID_SELECTION)) return aResult;