]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for plane selection. Selection attribute return empty shape for construction.
authordbv <dbv@opencascade.com>
Wed, 20 Apr 2016 11:51:01 +0000 (14:51 +0300)
committerdbv <dbv@opencascade.com>
Wed, 20 Apr 2016 11:51:23 +0000 (14:51 +0300)
src/Model/Model_AttributeSelection.cpp

index 960305ca6d4a47a23b07709ab594c120206ef149..be028e276f5cab1909cd0c0bdd9840588e7e1a4f 100644 (file)
@@ -185,8 +185,8 @@ std::shared_ptr<GeomAPI_Shape> Model_AttributeSelection::value()
   if (myTmpContext.get() || myTmpSubShape.get()) {
     ResultConstructionPtr aResulConstruction = std::dynamic_pointer_cast<ModelAPI_ResultConstruction>(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();
   }