mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 19:08:55 -04:00
turn off warning for frame count=1
This commit is contained in:
parent
fcb41afd31
commit
ef9e7478fc
@ -85,7 +85,7 @@ class ActorInterval(Interval.Interval):
|
|||||||
warned = 0
|
warned = 0
|
||||||
for i in range(1, len(self.controls)):
|
for i in range(1, len(self.controls)):
|
||||||
numFrames = self.controls[i].getNumFrames()
|
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()))
|
self.notify.warning("Animations '%s' on %s have an inconsistent number of frames." % (animName, actor.getName()))
|
||||||
warned = 1
|
warned = 1
|
||||||
maxFrames = max(maxFrames, numFrames)
|
maxFrames = max(maxFrames, numFrames)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user