-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(rhino): adds names to all objects on bake #327
feat(rhino): adds names to all objects on bake #327
Conversation
@@ -253,7 +256,7 @@ private void PreReceiveDeepClean(string baseLayerName) | |||
_groupBaker.PurgeGroups(baseLayerName); | |||
} | |||
|
|||
private Guid BakeObject(GeometryBase obj, Base originalObject, int layerIndex) | |||
private Guid BakeObject(GeometryBase obj, Base originalObject, int layerIndex, string? name = null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since we already have originalObject
in relevant functions, I wouldn't pollute function arguments. You need to do it only in BakeObjects function and thats it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can't do it there, since originalObject
could be a Base
in a display value of an element that used fallback conversion for example. We need to do it in both the group converter and the bake then.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #327 +/- ##
========================================
- Coverage 8.40% 8.40% -0.01%
========================================
Files 240 240
Lines 4830 4832 +2
Branches 560 561 +1
========================================
Hits 406 406
- Misses 4407 4409 +2
Partials 17 17 ☔ View full report in Codecov by Sentry. |
Looks for a
name
property on incoming atomic objects, and bakes rhino objects with a name if one exists.Motivation: while the name is nice to preserve for multiplayer flows, this property helps a lot when receiving fallback geometry from other apps (esp civil and revit) that would help identify what the original object was.
Also adds
name
property to all rhino objects on send.