Salome HOME
Fix for the issue #19061 : Mesh warning sign although no change has been made in...
[modules/shaper_study.git] / src / PY / SHAPERSTUDY_Object.py
index b95c28e862b2bcf89ca60b0ba707900788766a3e..91bddef2c5ad833a73bb099d9c0720ace199697b 100755 (executable)
@@ -370,7 +370,7 @@ class SHAPERSTUDY_Group(SHAPERSTUDY_ORB__POA.SHAPER_Group, SHAPERSTUDY_Object):
           aMainShape = self.GetMainShape()
           if aMainShape:
             aTick = aMainShape.GetTick()
-        if aTick != self.selectionTick or aTick == -2: # the last condition is for load: restore old and new
+        if aTick != self.selectionTick or aTick == -2:
           self.selectionOld = self.selection
           self.selection = theSelection
           self.selectionTick = aTick
@@ -390,7 +390,7 @@ class SHAPERSTUDY_Group(SHAPERSTUDY_ORB__POA.SHAPER_Group, SHAPERSTUDY_Object):
         """
         Returns the previously selected sub-shapes indices
         """
-        print("get selection OLD " + self.entry + " old = " + str(self.selectionOld) + " new = " + str(self.selection))
+        #print("get selection OLD " + self.entry + " old = " + str(self.selectionOld) + " new = " + str(self.selection))
         return self.selectionOld
 
     def IsMainShape( self ):
@@ -432,6 +432,19 @@ class SHAPERSTUDY_Group(SHAPERSTUDY_ORB__POA.SHAPER_Group, SHAPERSTUDY_Object):
 
     pass
 
+    def GetTick( self ):
+        """
+        Get value of a modification counter of the group
+        """
+        return self.selectionTick
+
+    def SetTick( self, theValue ):
+        """
+        Sets value of a modification counter of the group
+        """
+        #print("Set tick " + self.entry + " tick = " + str(theValue))
+        self.selectionTick = theValue
+
 class SHAPERSTUDY_Field(SHAPERSTUDY_ORB__POA.SHAPER_Field, SHAPERSTUDY_Group):
     """
     Constructs an instance of SHAPERSTUDY Field (inherits selection from a Group object)