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
"""
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 ):
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)