Consolidate public API into a single callable 'GetPath' method

This commit is contained in:
John Lewin 2018-12-05 16:38:55 -08:00
parent dd91bba01b
commit 79ed39cf8b
2 changed files with 2 additions and 2 deletions

View file

@ -190,7 +190,7 @@ namespace MatterHackers.MatterControl.Library.Export
string sourceExtension = $".{firstItem.ContentType}";
string assetPath = await AssetObject3D.AssetManager.StoreMcx(loadedItem, false);
string gcodePath = printer.GCodePath(HashGenerator.ComputeFileSHA1(assetPath));
string gcodePath = printer.GetGCodePathAndFileName(assetPath);
if (ApplicationSettings.ValidFileExtensions.IndexOf(sourceExtension, StringComparison.OrdinalIgnoreCase) >= 0
|| string.Equals(sourceExtension, ".mcx", StringComparison.OrdinalIgnoreCase))