Skip to content
Permalink
Browse files

Fixed issue with scene instance using the wrong collection in for loo…

…p count
  • Loading branch information
Hyperpred authored and xen2 committed Oct 10, 2019
1 parent 976fae8 commit d30763723936d7c89f8856071ba8a495146b1734
Showing with 1 addition and 1 deletion.
  1. +1 −1 sources/engine/Xenko.Engine/Engine/SceneInstance.cs
@@ -167,7 +167,7 @@ void DealWithTempChanges(object sender, TrackingCollectionChangedEventArgs e)
var scenesToAdd = new FastList<Scene>();
// Reverse order, we're adding and removing from the tail to
// avoid forcing the list to move all items when removing at [0]
for (int i = scene.Entities.Count - 1; i >= 0; i--)
for (int i = scene.Children.Count - 1; i >= 0; i--)
scenesToAdd.Add(scene.Children[i]);

scene.Children.CollectionChanged += DealWithTempChanges;

0 comments on commit d307637

Please sign in to comment.
You can’t perform that action at this time.