Skip to content

Commit

Permalink
comment on why custom grid3d view property
Browse files Browse the repository at this point in the history
  • Loading branch information
Wumpf committed Dec 6, 2024
1 parent 3cdbed5 commit 103a6ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/viewer/re_space_view_spatial/src/view_3d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,6 @@ impl SpaceViewClass for SpatialSpaceView3D {

re_ui::list_item::list_item_scope(ui, "spatial_view3d_selection_ui", |ui| {
view_property_ui::<Background>(ctx, ui, view_id, self, state);
//view_property_ui::<LineGrid3D>(ctx, ui, view_id, self, state);
view_property_ui_grid3d(ctx, ui, view_id, self, state);
});

Expand All @@ -447,6 +446,9 @@ impl SpaceViewClass for SpatialSpaceView3D {
}
}

// The generic ui (via `view_property_ui::<Background>(ctx, ui, view_id, self, state);`)
// is suitable for the most part. However, as of writing the alpha color picker doesn't handle alpha
// which we need here.
fn view_property_ui_grid3d(
ctx: &ViewerContext<'_>,
ui: &mut egui::Ui,
Expand Down

0 comments on commit 103a6ab

Please sign in to comment.