KeKsBoTer / web-splat

3D Gaussian Splatting Renderer implemented in WebGPU (WGPU) and Rust
https://web-splat.niedermayr.dev
116 stars 10 forks source link

UI can not be on/off if setting `ui_visible` false at initialization #17

Open oUp2Uo opened 2 weeks ago

oUp2Uo commented 2 weeks ago

Hi, after updating to the latest "lazy rendering" commit, if setting ui_visible (in file lib.rs) false at initialization, then key U would not work. If ui_visible is true at the beginning, key U would be able to change UI showing on/off.

https://github.com/KeKsBoTer/web-splat/blob/master/src/lib.rs#L286

In last version, changing initial value of ui_visible would not effect key U event, which means both work fine.