From e67305ed7d071c8eb6c8d38e4b4073d9bac53c00 Mon Sep 17 00:00:00 2001 From: John Lewin Date: Tue, 20 Mar 2018 16:37:13 -0700 Subject: [PATCH] Let LoadImage resolve AssetPath - Remove non-relative path aware File.Exists call --- DesignTools/Primitives/ImageObject3D.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DesignTools/Primitives/ImageObject3D.cs b/DesignTools/Primitives/ImageObject3D.cs index 87ab313e8..8f724ae9d 100644 --- a/DesignTools/Primitives/ImageObject3D.cs +++ b/DesignTools/Primitives/ImageObject3D.cs @@ -75,10 +75,10 @@ namespace MatterHackers.MatterControl.DesignTools { if (_image == null) { - if (File.Exists(this.AssetPath)) - { - _image = this.LoadImage(); + _image = this.LoadImage(); + if (_image != null) + { if (this.Invert) { _image = InvertLightness.DoInvertLightness(_image);