Bläddra i källkod

turn off warning for frame count=1

David Rose 22 år sedan
förälder
incheckning
ef9e7478fc
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      direct/src/interval/ActorInterval.py

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

@@ -85,7 +85,7 @@ class ActorInterval(Interval.Interval):
                 warned = 0
                 for i in range(1, len(self.controls)):
                     numFrames = self.controls[i].getNumFrames()
-                    if numFrames != maxFrames and not warned:
+                    if numFrames != maxFrames and numFrames != 1 and not warned:
                         self.notify.warning("Animations '%s' on %s have an inconsistent number of frames." % (animName, actor.getName()))
                         warned = 1
                     maxFrames = max(maxFrames, numFrames)