1
Fork 0
mirror of https://github.com/thegeneralist01/Scene-Manager-DevRepo synced 2026-01-11 15:40:29 +01:00

Excluded flares from being reset

This commit is contained in:
Rich Dunne 2020-09-04 04:34:40 -06:00
parent 268bcc4ca6
commit 7c28d2dddd

View file

@ -157,7 +157,7 @@ namespace SceneManager
if(selectedItem == resetBarriers)
{
foreach(Barrier barrier in barriers.Where(b => b.GetBarrier()))
foreach(Barrier barrier in barriers.Where(b => b.GetBarrier() && !b.GetBarrier().Model.Name.Contains("flare")))
{
barrier.GetBarrier().Position = barrier.GetPosition();
barrier.GetBarrier().Heading = barrier.GetRotation();