Restoring Image Converter creating
This commit is contained in:
parent
3e3fc7d8d8
commit
9e76e1c771
3 changed files with 5 additions and 4 deletions
|
|
@ -132,7 +132,7 @@ namespace MatterHackers.MatterControl.Library
|
|||
var object3D = await collector?.Invoke();
|
||||
|
||||
// If the content has not set a color, we'll assign from the running ColorRange
|
||||
if (object3D.Color == Color.Transparent)
|
||||
if (object3D?.Color == Color.Transparent)
|
||||
{
|
||||
object3D.Color = this.Color;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ either expressed or implied, of the FreeBSD Project.
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using MatterHackers.Agg.Platform;
|
||||
using MatterHackers.DataConverters3D;
|
||||
|
|
@ -135,7 +136,8 @@ namespace MatterHackers.MatterControl.Library
|
|||
SceneOperations.ById("ImageConverter").Action(bedConfig);
|
||||
|
||||
// Return replacement object constructed in ImageConverter operation
|
||||
var constructedComponent = tempScene.SelectedItem;
|
||||
var constructedComponent = tempScene.Children.LastOrDefault();
|
||||
tempScene.SelectedItem = constructedComponent;
|
||||
tempScene.Children.Remove(constructedComponent);
|
||||
|
||||
return Task.FromResult(constructedComponent);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue