Fixing passed in color when selected object is default

This commit is contained in:
Lars Brubaker 2022-04-29 14:37:14 -07:00
parent 4a48f2e3e8
commit 16af8dcdb2

View file

@ -255,7 +255,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
var selection = scene.SelectedItem;
if (selection != null)
{
setColor?.Invoke(selection.Color);
setColor?.Invoke(selection.WorldColor());
scene.SelectionChanged -= SelectionChanged;
cancellationToken?.Cancel();
scene.SelectedItem = startingSelection;