Remove ModifyChildren from scene

This commit is contained in:
John Lewin 2017-09-26 12:52:54 -07:00
parent d1f9c04613
commit 3cba62e3c2
12 changed files with 51 additions and 56 deletions

View file

@ -275,16 +275,16 @@ namespace MatterHackers.MeshVisualizer
}
// SetMeshAfterLoad
scene.ModifyChildren(children =>
scene.Children.Modify(list =>
{
if (loadedItem.Mesh != null)
{
// STLs currently load directly into the mesh rather than as a group like AMF
children.Add(loadedItem);
list.Add(loadedItem);
}
else
{
children.AddRange(loadedItem.Children);
list.AddRange(loadedItem.Children);
}
});