Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jleibs committed Aug 28, 2023
1 parent fe74f56 commit 8831ec0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions crates/re_viewport/src/viewport_blueprint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ pub struct ViewportBlueprint<'a> {
}

impl<'a> ViewportBlueprint<'a> {
/// Determine whether all views in a blueprint are invalid.
///
/// This most commonly happens due to a change in struct definition that
/// breaks the definition of a serde-field, which means all views will
/// become invalid.
///
/// Note: the invalid check is used to potentially reset the blueprint, so we
/// take the conservative stance that if any view is still usable we will still
/// treat the blueprint as valid and show it.
pub fn is_invalid(&self) -> bool {
!self.space_views.is_empty()
&& self
Expand Down

0 comments on commit 8831ec0

Please sign in to comment.