Skip to content

Commit

Permalink
Dirty fix before full auto-reload from python is implemented.
Browse files Browse the repository at this point in the history
  • Loading branch information
damienmarchal committed Apr 1, 2022
1 parent add9607 commit 26de644
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python3/src/splib3/animation/animate.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ def __init__(self, *args, **kwargs):
self.node = args[0]
self.totalTime = 0
self.animations = []

def clearAnimations(self):
self.animations = []

def addAnimation(self, animation):
self.animations.append(animation)
Expand Down Expand Up @@ -165,7 +168,8 @@ def createScene(rootNode)
"""
global manager
if manager is not None:
Sofa.msg_info(node, "There is already one animation manager in this scene...why do you need a second one ?")
#Sofa.msg_info(node, "There is already one animation manager in this scene...why do you need a second one ? Resting it.")
manager.clearAnimations()
return manager
manager = AnimationManagerController(node)
return manager
Expand Down

0 comments on commit 26de644

Please sign in to comment.