Skip to content

Commit

Permalink
Quiet the 'not a mono-batch' log spam when selecting keypoint with a …
Browse files Browse the repository at this point in the history
…batch class-id
  • Loading branch information
jleibs committed May 16, 2024
1 parent 1ff16a8 commit 8f9dc0b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/re_data_ui/src/annotation_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,13 @@ fn annotation_info(
keypoint_id: KeypointId,
) -> Option<AnnotationInfo> {
// TODO(#5607): what should happen if the promise is still pending?

// TODO(#6358): this needs to use the index of the keypoint to look up the correct
// class_id. For now we use `latest_at_component_quiet` to avoid the warning spam.
let class_id = ctx
.recording()
.latest_at_component::<re_types::components::ClassId>(entity_path, query)?;
.latest_at_component_quiet::<re_types::components::ClassId>(entity_path, query)?;

let annotations = crate::annotations(ctx, query, entity_path);
let class = annotations.resolved_class_description(Some(class_id.value));
class.keypoint_map?.get(&keypoint_id).cloned()
Expand Down

0 comments on commit 8f9dc0b

Please sign in to comment.