mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 16:25:42 +00:00
add reload status to onNewDataBlock callback
and skip calling onremove/onadd if we're not reloading
This commit is contained in:
parent
2852b33cec
commit
2ae10c7ce1
28 changed files with 35 additions and 37 deletions
|
|
@ -545,7 +545,7 @@ bool AITurretShape::onNewDataBlock(GameBaseData* dptr, bool reload)
|
|||
mShapeInstance->setTimeScale(mStateAnimThread,0);
|
||||
}
|
||||
|
||||
scriptOnNewDataBlock();
|
||||
scriptOnNewDataBlock(reload);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -440,7 +440,7 @@ bool TurretShape::onNewDataBlock(GameBaseData* dptr, bool reload)
|
|||
|
||||
if (!mSubclassTurretShapeHandlesScene)
|
||||
{
|
||||
scriptOnNewDataBlock();
|
||||
scriptOnNewDataBlock(reload);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue