mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
Stop precipitation from processing ticks when it's hidden.
This commit is contained in:
parent
311d6bd81f
commit
9217dfa4bd
1 changed files with 1 additions and 1 deletions
|
|
@ -1293,7 +1293,7 @@ void Precipitation::interpolateTick(F32 delta)
|
||||||
void Precipitation::processTick(const Move *)
|
void Precipitation::processTick(const Move *)
|
||||||
{
|
{
|
||||||
//nothing to do on the server
|
//nothing to do on the server
|
||||||
if (isServerObject() || mDataBlock == NULL)
|
if (isServerObject() || mDataBlock == NULL || isHidden())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const U32 currTime = Platform::getVirtualMilliseconds();
|
const U32 currTime = Platform::getVirtualMilliseconds();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue