]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #24357: Export mesh with field on vertices
authorazv <azv@opencascade.com>
Tue, 13 Jul 2021 05:50:01 +0000 (08:50 +0300)
committerazv <azv@opencascade.com>
Tue, 13 Jul 2021 05:50:01 +0000 (08:50 +0300)
Correct the order of field results

src/Model/Model_ResultField.cpp

index 837f920003a7f0f635dbf15a7da8d15f8de66a4a..e60919a38bfbda0f25e738885f2fcc16ec233387 100644 (file)
@@ -90,7 +90,7 @@ std::shared_ptr<GeomAPI_Shape> Model_ResultField::shape()
         for(int a = aList->size() - 1; a >= 0; a--) {
           std::shared_ptr<GeomAPI_Shape> aSelection = aList->value(a)->value();
           if (aSelection && !aSelection->isNull()) {
-            aSubs.push_back(aSelection);
+            aSubs.push_front(aSelection);
           }
         }
       }