Remove ModifyChildren from scene
This commit is contained in:
parent
d1f9c04613
commit
3cba62e3c2
12 changed files with 51 additions and 56 deletions
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue