Skip to content

Commit

Permalink
Merge pull request #307 from specklesystems/dimitrie/cnx-649-assembly…
Browse files Browse the repository at this point in the history
…-structure-two-layers-with-the-same-material-name

fix(dui3): ensures we don't override structure layers
  • Loading branch information
didimitrie authored Oct 18, 2024
2 parents 6e56c3c + dd17d36 commit 528c692
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ ILogger<ParameterExtractor> logger
{
if (_settingsStore.Current.Document.GetElement(layer.MaterialId) is DB.Material material)
{
structureDictionary[material.Name] = new Dictionary<string, object>()
var uniqueLayerName = $"{material.Name} ({layer.LayerId})";
structureDictionary[uniqueLayerName] = new Dictionary<string, object>()
{
["material"] = material.Name,
["function"] = layer.Function.ToString(),
Expand Down

0 comments on commit 528c692

Please sign in to comment.