Skip to content

Commit

Permalink
fix: gaussian mode viewer argument
Browse files Browse the repository at this point in the history
  • Loading branch information
mosure committed Oct 22, 2024
1 parent bcedf5b commit 1e87b8f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions viewer/viewer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ use bevy_panorbit_camera::{
use bevy_gaussian_splatting::{
GaussianCamera,
GaussianCloud,
GaussianMode,
GaussianCloudSettings,
GaussianSplattingBundle,
GaussianSplattingPlugin,
random_gaussians,
Expand Down Expand Up @@ -58,6 +60,7 @@ use bevy_gaussian_splatting::query::sparse::SparseSelect;

fn setup_gaussian_cloud(
mut commands: Commands,
args: Res<GaussianSplattingViewer>,
asset_server: Res<AssetServer>,
gaussian_splatting_viewer: Res<GaussianSplattingViewer>,
mut gaussian_assets: ResMut<Assets<GaussianCloud>>,
Expand All @@ -76,6 +79,10 @@ fn setup_gaussian_cloud(
commands.spawn((
GaussianSplattingBundle {
cloud,
settings: GaussianCloudSettings {
gaussian_mode: args.gaussian_mode,
..default()
},
..default()
},
Name::new("gaussian_cloud"),
Expand Down

0 comments on commit 1e87b8f

Please sign in to comment.