Working on new material selector

This commit is contained in:
Lars Brubaker 2022-03-16 17:25:59 -07:00
parent 2034c86c3e
commit d59e8ee1d3
30 changed files with 632 additions and 511 deletions

View file

@ -194,9 +194,7 @@ M300 S3000 P30 ; Resume Tone";
Assert.AreEqual(1, profile.MaterialLayers.Count, "Each material profile should have 1 material in it");
var material = profile.MaterialLayers[0];
profile.ActiveMaterialKey = material.LayerID;
var hasSku = !string.IsNullOrEmpty(profile.GetValue(SettingsKey.material_sku));
var hasUrl = !string.IsNullOrEmpty(profile.GetValue(SettingsKey.material_url));
Assert.IsTrue(hasSku || hasUrl);
Assert.IsTrue(!string.IsNullOrEmpty(profile.GetValue(SettingsKey.material_sku)));
}
}