Skip to content

Commit

Permalink
Merge pull request #75 from SofaDefrost/pr-fix-for-animation-autoreload
Browse files Browse the repository at this point in the history
Pr fix for animation autoreload
  • Loading branch information
damienmarchal authored Apr 1, 2022
2 parents 2b41d7f + 9419556 commit 600b5dd
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 600b5dd

Please sign in to comment.