Skip to content

Commit 76cbfc4

Browse files
style: apply clang-format
1 parent abf2177 commit 76cbfc4

4 files changed

Lines changed: 25 additions & 19 deletions

File tree

src/core/splat_simplify.cpp

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -477,9 +477,15 @@ namespace lfs::core {
477477
[[nodiscard]] Eigen3x3 eigen_symmetric_3x3_jacobi(const std::array<float, 9>& Ain) {
478478
std::array<float, 9> A = Ain;
479479
std::array<float, 9> V = {
480-
1.0f, 0.0f, 0.0f,
481-
0.0f, 1.0f, 0.0f,
482-
0.0f, 0.0f, 1.0f,
480+
1.0f,
481+
0.0f,
482+
0.0f,
483+
0.0f,
484+
1.0f,
485+
0.0f,
486+
0.0f,
487+
0.0f,
488+
1.0f,
483489
};
484490

485491
for (int iter = 0; iter < kJacobiIterations; ++iter) {

src/visualizer/gui/gui_manager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5915,10 +5915,10 @@ namespace lfs::vis::gui {
59155915
left_dock_input_activity;
59165916
if (block_underlay_input || !left_dock_requires_live_layout) {
59175917
panel_layout_.renderLeftDockCached(draw_ctx, show_main_panel_, ui_hidden_,
5918-
panel_input, screen);
5918+
panel_input, screen);
59195919
} else {
59205920
panel_layout_.renderLeftDock(draw_ctx, show_main_panel_, ui_hidden_,
5921-
panel_input, screen);
5921+
panel_input, screen);
59225922
}
59235923
if (!hasMouseButtonDown(sdl_input))
59245924
left_dock_pointer_live_capture_ = false;

src/visualizer/gui/panel_layout.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -536,10 +536,10 @@ namespace lfs::vis::gui {
536536
}
537537

538538
void PanelLayoutManager::renderLeftDock(const PanelDrawContext& draw_ctx,
539-
const bool show_main_panel,
540-
const bool ui_hidden,
541-
const PanelInputState& input,
542-
const ScreenState& screen) {
539+
const bool show_main_panel,
540+
const bool ui_hidden,
541+
const PanelInputState& input,
542+
const ScreenState& screen) {
543543
LOG_TIMER("gui_render.panel_layout.renderLeftDock");
544544
auto& reg = PanelRegistry::instance();
545545
if (!show_main_panel || ui_hidden || screen.work_size.x <= 0 || screen.work_size.y <= 0 ||
@@ -648,10 +648,10 @@ namespace lfs::vis::gui {
648648
}
649649

650650
void PanelLayoutManager::renderLeftDockCached(const PanelDrawContext& draw_ctx,
651-
const bool show_main_panel,
652-
const bool ui_hidden,
653-
const PanelInputState& input,
654-
const ScreenState& screen) {
651+
const bool show_main_panel,
652+
const bool ui_hidden,
653+
const PanelInputState& input,
654+
const ScreenState& screen) {
655655
LOG_TIMER("gui_render.panel_layout.renderLeftDock.cached");
656656
auto& reg = PanelRegistry::instance();
657657
if (!show_main_panel || ui_hidden || screen.work_size.x <= 0 || screen.work_size.y <= 0 ||
@@ -763,8 +763,8 @@ namespace lfs::vis::gui {
763763
}
764764

765765
float PanelLayoutManager::computeLeftDockReservedWidth(const bool show_main_panel,
766-
const bool ui_hidden,
767-
const ScreenState& screen) const {
766+
const bool ui_hidden,
767+
const ScreenState& screen) const {
768768
const float dpi = lfs::python::get_shared_dpi_scale();
769769
const float icon_bar_w = ICON_BAR_WIDTH * dpi;
770770

@@ -784,8 +784,8 @@ namespace lfs::vis::gui {
784784
}
785785

786786
ViewportLayout PanelLayoutManager::computeViewportLayout(bool show_main_panel, bool ui_hidden,
787-
bool python_console_visible,
788-
const ScreenState& screen) const {
787+
bool python_console_visible,
788+
const ScreenState& screen) const {
789789
const float w = computeViewportWidth(show_main_panel, ui_hidden,
790790
python_console_visible, screen);
791791
const float h = ui_hidden

src/visualizer/gui/panel_layout.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,9 @@ namespace lfs::vis::gui {
148148
float computeBottomDockWidth(bool show_main_panel, bool ui_hidden,
149149
const ScreenState& screen) const;
150150
float computeBottomDockReservedHeight(bool show_main_panel, bool ui_hidden,
151-
const ScreenState& screen) const;
151+
const ScreenState& screen) const;
152152
float computeLeftDockReservedWidth(bool show_main_panel, bool ui_hidden,
153-
const ScreenState& screen) const;
153+
const ScreenState& screen) const;
154154

155155
float right_panel_width_ = 340.0f;
156156
float scene_panel_ratio_ = 0.4f;

0 commit comments

Comments
 (0)