Skip to content

Commit

Permalink
Attach parent applicationId to meshes (#385)
Browse files Browse the repository at this point in the history
- seems like TSM.Solid object doesn't have any Identifier
  • Loading branch information
oguzhankoral authored Nov 15, 2024
1 parent f84c4b2 commit a5ff2ca
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ public Base Convert(object target)
var displayValue = _displayValueExtractor.GetDisplayValue(modelObject).ToList();
if (displayValue.Count > 0)
{
foreach (var displayValueObject in displayValue)
{
// NOTE: since we put ModelObject applicationIds into proxies, we should also mutate the same application id for its displayValue objects.
// otherwise we will have anonymous objects on receive for other host apps
displayValueObject.applicationId = modelObject.GetSpeckleApplicationId();
}
result["displayValue"] = displayValue;
}

Expand Down

0 comments on commit a5ff2ca

Please sign in to comment.