mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
particle emission safeties
both for player specifically, and emission in general
This commit is contained in:
parent
0cc49122b0
commit
77ef842670
2 changed files with 3 additions and 1 deletions
|
|
@ -3954,7 +3954,8 @@ void Player::updateActionThread()
|
|||
// Emit footpuffs.
|
||||
|
||||
if (!footfallDustOverride && rInfo.t <= 0.5f && mWaterCoverage == 0.0f
|
||||
&& material && material->mShowDust )
|
||||
&& material && material->mShowDust
|
||||
&& mDataBlock->footPuffEmitter != nullptr)
|
||||
{
|
||||
// New emitter every time for visibility reasons
|
||||
ParticleEmitter * emitter = new ParticleEmitter;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue