mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 22:54:34 +00:00
fix particle glow
multiple preloads were failing to return false or mesages on failure of mandatory entries. clear out redundant isScriptFile definition fix default order of /scripts/managedData script files
This commit is contained in:
parent
5d260bc58f
commit
cce40efd35
21 changed files with 250 additions and 134 deletions
|
|
@ -704,7 +704,10 @@ bool ParticleEmitterData::preload(bool server, String &errorStr)
|
|||
{
|
||||
ParticleData* pData = NULL;
|
||||
if (Sim::findObject(dataBlockIds[i], pData) == false)
|
||||
Con::warnf(ConsoleLogEntry::General, "ParticleEmitterData(%s) unable to find particle datablock: %d", getName(), dataBlockIds[i]);
|
||||
{
|
||||
errorStr = String::ToString("ParticleEmitterData(%s) unable to find particle datablock: %d", getName(), dataBlockIds[i]);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
particleDataBlocks.push_back(pData);
|
||||
}
|
||||
|
|
@ -749,6 +752,7 @@ bool ParticleEmitterData::preload(bool server, String &errorStr)
|
|||
if (particleDataBlocks[i]->getTextureAsset()->getImageFile() != txr_name)
|
||||
{
|
||||
Con::warnf(ConsoleLogEntry::General, "ParticleEmitterData(%s) particles reference different textures.", getName());
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue