turn off warning for frame count=1

This commit is contained in:
David Rose 2003-12-12 05:45:51 +00:00
parent fcb41afd31
commit ef9e7478fc

View File

@ -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)