Skip to content

Commit 98a76e4

Browse files
committed
backports
1 parent 15def51 commit 98a76e4

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

docs/snippets/all/descriptors/descr_custom_archetype.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ struct rerun::AsComponents<CustomPoints3D> {
4242
batches.push_back(ComponentBatch::from_loggable(indicator).value_or_throw());
4343

4444
auto positions_descr = rerun::Loggable<CustomPosition3D>::Descriptor
45-
.or_with_archetype_name("user.CustomArchetype")
46-
.or_with_archetype_field_name("positions");
45+
.or_with_archetype_name("user.CustomPoints3D")
46+
.or_with_archetype_field_name("custom_positions");
4747
batches.push_back(
4848
ComponentBatch::from_loggable(archetype.positions, positions_descr).value_or_throw()
4949
);
5050

5151
if (archetype.colors) {
5252
auto colors_descr = rerun::Loggable<rerun::Color>::Descriptor
53-
.or_with_archetype_name("user.CustomArchetype")
53+
.or_with_archetype_name("user.CustomPoints3D")
5454
.or_with_archetype_field_name("colors");
5555
batches.push_back(
5656
ComponentBatch::from_loggable(archetype.colors, colors_descr).value_or_throw()

docs/snippets/all/descriptors/descr_custom_component.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ struct CustomPosition3D {
66

77
template <>
88
struct rerun::Loggable<CustomPosition3D> {
9-
static constexpr const ComponentDescriptor Descriptor = ComponentDescriptor(
10-
"user.CustomArchetype", "user.CustomArchetypeField", "user.CustomPosition3D"
11-
);
9+
static constexpr const ComponentDescriptor Descriptor =
10+
ComponentDescriptor("user.CustomArchetype", "custom_positions", "user.CustomPosition3D");
1211

1312
static const std::shared_ptr<arrow::DataType>& arrow_datatype() {
1413
return rerun::Loggable<rerun::components::Position3D>::arrow_datatype();

0 commit comments

Comments
 (0)