diff --git a/Connectors/Autocad/Speckle.Connectors.AutocadShared/Operations/Receive/AutocadHostObjectBuilder.cs b/Connectors/Autocad/Speckle.Connectors.AutocadShared/Operations/Receive/AutocadHostObjectBuilder.cs index f3ecba48c..d6f6825ac 100644 --- a/Connectors/Autocad/Speckle.Connectors.AutocadShared/Operations/Receive/AutocadHostObjectBuilder.cs +++ b/Connectors/Autocad/Speckle.Connectors.AutocadShared/Operations/Receive/AutocadHostObjectBuilder.cs @@ -224,7 +224,7 @@ string baseLayerName { var ids = new ObjectIdCollection(); var entities = new List(); - foreach (var (conversionResult, originalBaseObject) in fallbackConversionResult) + foreach (var (conversionResult, _) in fallbackConversionResult) { if (conversionResult is not Entity entity) { @@ -232,7 +232,7 @@ string baseLayerName continue; } - BakeObject(entity, originalBaseObject, layerName); + BakeObject(entity, originatingObject, layerName); ids.Add(entity.ObjectId); entities.Add(entity); }