Salome HOME
Fix for the issue #3167: Shaper study contains only result for feature having several...
authormpv <mikhail.ponikarov@opencascade.com>
Thu, 19 Mar 2020 14:23:02 +0000 (17:23 +0300)
committermpv <mikhail.ponikarov@opencascade.com>
Thu, 19 Mar 2020 14:23:02 +0000 (17:23 +0300)
src/PY/SHAPERSTUDY.py

index 21c4666c541139a99d77bb3d8a6a8b1576d3fb7e..a7ed209188cee459ef7935333062491b79625b8a 100644 (file)
@@ -390,7 +390,10 @@ class SHAPERSTUDY(SHAPERSTUDY_ORB__POA.Gen,
         global __entry2DumpName__
         anEntry = "s" + theShapeObj.GetEntry()
         if anEntry in __entry2DumpName__:
-          return "model.featureStringId(" + __entry2DumpName__[anEntry] + ")"
+          anArg = ""
+          if anEntry.count(":") == 2: # not first result of the feature, set argument as a number
+            anArg = ", " + anEntry[anEntry.rfind(":") + 1:]
+          return "model.featureStringId(" + __entry2DumpName__[anEntry] + anArg + ")"
         return "\"" + theShapeObj.GetEntry() + "\""
 
     def DumpPython( self, isPublished, isMultiFile ):