-
Notifications
You must be signed in to change notification settings - Fork 373
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
Codegen for space view python blueprint classes #6100
Conversation
@@ -0,0 +1,4 @@ | |||
# DO NOT EDIT! This file is generated by crates/re_types_builder/src/lib.rs | |||
|
|||
.gitattributes linguist-generated=true |
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.
there's no tests in here, this is silly
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.
not the only one though. not bothering with this right now
@@ -68,28 +68,34 @@ impl Objects { | |||
objects: resolved_enums.into_iter().chain(resolved_objs).collect(), | |||
}; | |||
|
|||
// Validate fields types: Archetype consist of components, everything else consists of datatypes. | |||
// Validate fields types: Archetype consist of components, Space Views consist of archetypes, everything else consists of datatypes. |
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.
I can't help but wonder if "SuperArchetypes" (structured collections of archetype) are a generic things of which SpaceViews just happen to be the first example.
What
Extends our codegen to accept a fourth object type, space views (in addition to datatypes/components/archetypes). Meaning we can do special codegen for space views now, making it easy to set them up consistently and define what properties a space view can be constructed from. Building up on the previous PR that exposed background3d color, this generates almost identical code now.
Doesn't add yet any new view properties - this is going to happen in a follow-up PR since it requires getting a few more things serializable and subsequently also testing.
Checklist
main
build: rerun.io/viewernightly
build: rerun.io/viewerTo run all checks from
main
, comment on the PR with@rerun-bot full-check
.