mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-25 15:14:46 +00:00
Mounted image weapon light fix
Fix for mounted image lights beyond the first weapon light. Before this fix all mounted images that have lights would not function if mounted to a slot after a mounted image that uses a weapon light.
This commit is contained in:
parent
2bb0b3bc58
commit
edaecf0a5b
|
|
@ -3262,7 +3262,7 @@ void ShapeBase::submitLights( LightManager *lm, bool staticLighting )
|
|||
{
|
||||
S32 elapsed = Sim::getCurrentTime() - image.lightStart;
|
||||
if ( elapsed > imageData->lightDuration )
|
||||
return;
|
||||
continue;
|
||||
intensity = ( 1.0 - (F32)elapsed / (F32)imageData->lightDuration ) * imageData->lightBrightness;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue