瀏覽代碼

*** empty log message ***

Mike Goslin 24 年之前
父節點
當前提交
fd4f644e1a
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      direct/src/interval/ActorInterval.py

+ 4 - 1
direct/src/interval/ActorInterval.py

@@ -51,7 +51,10 @@ class ActorInterval(Interval):
         # Update animation based upon current time
         # Update animation based upon current time
         # Pose or stop anim
         # Pose or stop anim
         if (t >= self.getDuration()):
         if (t >= self.getDuration()):
-            self.actor.stop()
+	    if (self.actor != None):
+            	self.actor.stop()
+	    else:
+		self.notify.warning('updateFunc() - actor == None!')
             if self.loop:
             if self.loop:
                 self.ignore(self.stopEvent)
                 self.ignore(self.stopEvent)
         elif self.loop == 1:
         elif self.loop == 1: