mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
Merge pull request #1370 from eightyeight/fix-precipitation-hiding
Stop precipitation from processing ticks when it's hidden
This commit is contained in:
commit
adc9c9e8a4
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