mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-03 12:30:31 +00:00
Adds a sanity check in the event we don't actually have any animation frames generated.
This commit is contained in:
parent
4b983cf23e
commit
59637bb1c7
1 changed files with 1 additions and 1 deletions
|
|
@ -1702,7 +1702,7 @@ void ParticleEmitter::setupBillboard( Particle *part,
|
|||
lVerts->color = partCol; } \
|
||||
|
||||
// Here we deal with UVs for animated particle (billboard)
|
||||
if (part->dataBlock->animateTexture)
|
||||
if (part->dataBlock->animateTexture && !part->dataBlock->animTexFrames.empty())
|
||||
{
|
||||
S32 fm = (S32)(part->currentAge*(1.0/1000.0)*part->dataBlock->framesPerSec);
|
||||
U8 fm_tile = part->dataBlock->animTexFrames[fm % part->dataBlock->numFrames];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue