]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #838: Use only original part results for getting sub-document of a Part (not...
authorvsv <vitaly.smetannikov@opencascade.com>
Mon, 24 Aug 2015 16:16:58 +0000 (19:16 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Mon, 24 Aug 2015 16:16:58 +0000 (19:16 +0300)
src/XGUI/XGUI_DataModel.cpp

index 13653e5f37d53544d677d5efa225442e290bb671..2f0672cfed88af78786113cd44f436d56ca9dd69 100644 (file)
@@ -37,7 +37,10 @@ ResultPartPtr getPartResult(ModelAPI_Object* theObj)
   if (aFeature) {
     ResultPtr aRes = aFeature->firstResult();
     if (aRes.get() && (aRes->groupName() == ModelAPI_ResultPart::group())) {
-      return std::dynamic_pointer_cast<ModelAPI_ResultPart>(aRes);
+      ResultPartPtr aPartRes = std::dynamic_pointer_cast<ModelAPI_ResultPart>(aRes);
+      // Use only original parts, not a placement results
+      if (aPartRes == aPartRes->original())
+      return aPartRes;
     }
   }
   return ResultPartPtr();