Only do it if there is a single child

This commit is contained in:
Lars Brubaker 2018-06-27 13:12:49 -07:00
parent 567c79ea3f
commit c4701dbdb8

View file

@ -183,7 +183,7 @@ namespace MatterHackers.MatterControl.Library
var first = loadedItems.First();
if (first.GetType() == typeof(Object3D)
&& first.Mesh == null
&& first.Children.Count > 0)
&& first.Children.Count == 1)
{
// collapse our first child into this
this.Children.Modify(list =>