From 1e87b8f20fd6082b52b35173dd29cf2cc437c7df Mon Sep 17 00:00:00 2001 From: mosure Date: Mon, 21 Oct 2024 19:20:53 -0500 Subject: [PATCH] fix: gaussian mode viewer argument --- viewer/viewer.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/viewer/viewer.rs b/viewer/viewer.rs index 3cc48426..ee770025 100644 --- a/viewer/viewer.rs +++ b/viewer/viewer.rs @@ -27,6 +27,8 @@ use bevy_panorbit_camera::{ use bevy_gaussian_splatting::{ GaussianCamera, GaussianCloud, + GaussianMode, + GaussianCloudSettings, GaussianSplattingBundle, GaussianSplattingPlugin, random_gaussians, @@ -58,6 +60,7 @@ use bevy_gaussian_splatting::query::sparse::SparseSelect; fn setup_gaussian_cloud( mut commands: Commands, + args: Res, asset_server: Res, gaussian_splatting_viewer: Res, mut gaussian_assets: ResMut>, @@ -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"),