-
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
Replace MarkerShape
with code-generated enum
type
#5336
Changes from all commits
cc732bf
a884cb3
0a89672
3b3bc18
677d0d0
54f1fac
bc8b333
5c11970
ab49761
592aa24
8dbe173
b57c178
4eb8760
9e1198c
4c139b0
315ccce
b4d68b1
287622b
764719c
4aee9e4
db2360d
08b6ad2
d991f84
b23fb9d
895ef98
d08d3f3
a3042a9
dde7fa2
5819de7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,28 +7,18 @@ include "rerun/attributes.fbs"; | |
|
||
namespace rerun.components; | ||
|
||
// TODO(#3384) | ||
/* | ||
enum MarkerShape: byte { | ||
Circle = 1, | ||
Diamond = 2, | ||
Square = 3, | ||
Cross = 4, | ||
Plus = 5, | ||
Up = 6, | ||
Down = 7, | ||
Left = 8, | ||
Right = 9, | ||
Asterisk = 10, | ||
} | ||
*/ | ||
|
||
/// Shape of a marker. | ||
struct MarkerShape ( | ||
"attr.python.aliases": "int, str", | ||
"attr.python.array_aliases": "int, str", | ||
"attr.rust.derive": "PartialEq, Eq, PartialOrd, Copy", | ||
"attr.rust.repr": "transparent" | ||
enum MarkerShape: byte ( | ||
"attr.docs.unreleased" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why unreleased? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The generated doclink changes from https://docs.rs/re_types/latest/re_types/components/struct.MarkerShape.html to https://docs.rs/re_types/latest/re_types/components/enum.MarkerShape.html which doesn't exist (yet) |
||
) { | ||
shape: ubyte (order: 100); | ||
Circle (default), | ||
Diamond, | ||
Square, | ||
Cross, | ||
Plus, | ||
Up, | ||
Down, | ||
Left, | ||
Right, | ||
Asterisk, | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
The old code had a bug, which defaulted the
container_kind
to the invalid value0