Load GCodeStream from LibraryItem, process and export

- Issue MatterHackers/MCCentral#3835
Export option not available for gcode files
This commit is contained in:
John Lewin 2018-07-19 15:34:26 -07:00
parent 8e3c9392c2
commit 9014c6021a
3 changed files with 17 additions and 3 deletions

View file

@ -568,6 +568,8 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
});
},
IsEnabled = () => sceneContext.EditableScene
|| (sceneContext.EditContext.SourceItem is ILibraryAsset libraryAsset
&& string.Equals(Path.GetExtension(libraryAsset.FileName) ,".gcode" ,StringComparison.OrdinalIgnoreCase))
},
new NamedAction()
{