Only load setting that are part of an object that can be printed

This commit is contained in:
Lars Brubaker 2022-05-06 17:19:54 -07:00
parent b73ff7070c
commit 302cfc620e
2 changed files with 4 additions and 1 deletions

View file

@ -81,7 +81,7 @@ namespace MatterHackers.MatterControl
var foundPartSettings = false;
var newSceneOverrides = new PrinterSettingsLayer();
// accumulate all the scene overrides ordered by their names, which is the order they will be in the design tree
foreach (var partSettingsObject in scene.DescendantsAndSelf().Where(c => c is PartSettingsObject3D).OrderBy(i => i.Name))
foreach (var partSettingsObject in scene.DescendantsAndSelf().Where(c => c is PartSettingsObject3D && c.Parent?.WorldPrintable() == true).OrderBy(i => i.Name))
{
foundPartSettings = true;
var settings = ((PartSettingsObject3D)partSettingsObject).Overrides;