mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
prevented anim control crash
This commit is contained in:
parent
b12fbd0724
commit
ae0ced7c2c
@ -48,8 +48,10 @@ class AnimControlInterval(Interval.Interval):
|
|||||||
id = 'AnimControl-%d' % (AnimControlInterval.animNum)
|
id = 'AnimControl-%d' % (AnimControlInterval.animNum)
|
||||||
AnimControlInterval.animNum += 1
|
AnimControlInterval.animNum += 1
|
||||||
# Record class specific variables
|
# Record class specific variables
|
||||||
|
|
||||||
if(isinstance(controls, AnimControlCollection)):
|
if(isinstance(controls, AnimControlCollection)):
|
||||||
self.controls = controls
|
self.controls = controls
|
||||||
|
if(config.GetBool("strict-anim-ival",0)):
|
||||||
checkSz = self.controls.getAnim(0).getNumFrames()
|
checkSz = self.controls.getAnim(0).getNumFrames()
|
||||||
for i in range(1,self.controls.getNumAnims()):
|
for i in range(1,self.controls.getNumAnims()):
|
||||||
if(checkSz != self.controls.getAnim(i).getNumFrames()):
|
if(checkSz != self.controls.getAnim(i).getNumFrames()):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user