Use null ContentStore for plated gcode

This commit is contained in:
John Lewin 2018-10-04 19:42:58 -07:00
parent f2c2011aa7
commit ed7136cde7
3 changed files with 7 additions and 7 deletions

View file

@ -208,8 +208,8 @@ namespace MatterHackers.MatterControl
new EditContext()
{
SourceItem = libraryItem,
// No content store for GCode, otherwise PlatingHistory
ContentStore = this.EditContext.ContentStore
// No content store for GCode
ContentStore = null
});
// Slice and print
@ -613,7 +613,7 @@ namespace MatterHackers.MatterControl
ApplicationController.Instance.Thumbnails.DeleteCache(this.SourceItem);
// Call save on the provider
this.ContentStore.Save(this.SourceItem, this.Content);
this.ContentStore?.Save(this.SourceItem, this.Content);
}
}
}

View file

@ -569,8 +569,8 @@ namespace MatterHackers.MatterControl.PrintLibrary
new EditContext()
{
SourceItem = assetStream,
// No content store for GCode, otherwise PlatingHistory
ContentStore = printer.Bed.EditContext.ContentStore
// No content store for GCode
ContentStore = null
}).ConfigureAwait(false);
}
else

View file

@ -607,8 +607,8 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
new EditContext()
{
SourceItem = this.SceneReplacement,
// No content store for GCode, otherwise PlatingHistory
ContentStore = sceneContext.EditContext.ContentStore
// No content store for GCode
ContentStore = null
}).ConfigureAwait(false);
this.SceneReplacement = null;