MatterCad tools working much better.

This commit is contained in:
Lars Brubaker 2017-07-21 15:48:52 -07:00
parent e2de82238d
commit 5c9f6b5c3e
2 changed files with 123 additions and 52 deletions

View file

@ -54,7 +54,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
await Task.Run(() =>
{
var selectedItem = Scene.SelectedItem;
bool isGroupItemType = Scene.IsSelected(Object3DTypes.Group) || selectedItem.Name.ToLower().EndsWith(".mcx");
bool isGroupItemType = Scene.HasSelection && selectedItem.Children.Count > 0;
// If not a Group ItemType, look for mesh volumes and split into distinct objects if found
if (!isGroupItemType