Use null ContentStore for plated gcode
This commit is contained in:
parent
f2c2011aa7
commit
ed7136cde7
3 changed files with 7 additions and 7 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue