Skip to content

Commit

Permalink
fix: update direct shape parameters when it already exists (#3664)
Browse files Browse the repository at this point in the history
  • Loading branch information
teocomi authored Dec 11, 2024
1 parent 743eea1 commit ff929b3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ public ApplicationObject DirectShapeToNative(DirectShape speckleDs, ToNativeMesh
if (existingObj != null && existingObj is DB.DirectShape existingDS) // if it's a directShape, just update
{
existingDS.SetShape(converted);
SetInstanceParameters(existingDS, speckleDs);
appObj.Update(status: ApplicationObject.State.Updated, createdId: existingDS.UniqueId, convertedItem: existingDS);
return appObj;
}
Expand Down

0 comments on commit ff929b3

Please sign in to comment.