Skip to content

Commit 0aaa525

Browse files
style: apply clang-format
1 parent 0f4fcea commit 0aaa525

5 files changed

Lines changed: 10 additions & 13 deletions

File tree

src/core/include/core/events.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ namespace lfs::core {
143143
EVENT(SetSelectionSubMode, int selection_mode;);
144144
EVENT(ExecuteMirror, int axis;); // 0=X, 1=Y, 2=Z
145145
EVENT(CancelActiveOperator, ); // Cancel and revert current operator
146-
} // namespace tools
146+
} // namespace tools
147147

148148
// ============================================================================
149149
// State - Notifications about what has happened (broadcasts)
@@ -289,8 +289,8 @@ namespace lfs::core {
289289
EVENT(WindowFocusLost, );
290290
EVENT(DisplayScaleChanged, float scale;);
291291
EVENT(UiScaleChangeRequested, float scale;); // 0 = auto (from OS)
292-
} // namespace internal
293-
} // namespace events
292+
} // namespace internal
293+
} // namespace events
294294

295295
// ============================================================================
296296
// Convenience functions

src/io/formats/ply.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -440,10 +440,10 @@ namespace lfs::io {
440440
__cpuid(cpuInfo, 7);
441441
has_avx2 = (cpuInfo[1] & (1 << 5)) != 0;
442442
#elif defined(__GNUC__) || defined(__clang__)
443-
__builtin_cpu_init();
444-
has_avx2 = __builtin_cpu_supports("avx2");
443+
__builtin_cpu_init();
444+
has_avx2 = __builtin_cpu_supports("avx2");
445445
#else
446-
has_avx2 = false;
446+
has_avx2 = false;
447447
#endif
448448
});
449449

src/python/lfs/py_scene.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,14 +1311,12 @@ namespace lfs::python {
13111311
.def("get_node_bounds", &PyScene::get_node_bounds, nb::arg("id"), "Get axis-aligned bounding box as ((min_x, min_y, min_z), (max_x, max_y, max_z))")
13121312
.def("get_node_bounds_center", &PyScene::get_node_bounds_center, nb::arg("id"), "Get center of the node bounding box as (x, y, z)")
13131313
// Bounds (by name)
1314-
.def(
1315-
"get_node_bounds", [](PyScene& self, const std::string& name) {
1314+
.def("get_node_bounds", [](PyScene& self, const std::string& name) {
13161315
auto node = self.get_node(name);
13171316
if (!node)
13181317
return decltype(self.get_node_bounds(0)){std::nullopt};
13191318
return self.get_node_bounds(node->id()); }, nb::arg("name"), "Get axis-aligned bounding box by node name")
1320-
.def(
1321-
"get_node_bounds_center", [](PyScene& self, const std::string& name) {
1319+
.def("get_node_bounds_center", [](PyScene& self, const std::string& name) {
13221320
auto node = self.get_node(name);
13231321
if (!node)
13241322
throw std::runtime_error("Node not found: " + name);

src/python/lfs/py_ui.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3685,8 +3685,7 @@ namespace lfs::python {
36853685
{0, 0}, {u1, v1}, t, {0, 0, 0, 0});
36863686
},
36873687
nb::arg("texture"), nb::arg("size"), nb::arg("tint") = nb::none(), "Draw a DynamicTexture with automatic UV scaling")
3688-
.def(
3689-
"image_tensor", [](PyUILayout& /*self*/, const std::string& label, PyTensor& tensor, std::tuple<float, float> size, nb::object tint) {
3688+
.def("image_tensor", [](PyUILayout& /*self*/, const std::string& label, PyTensor& tensor, std::tuple<float, float> size, nb::object tint) {
36903689
PyDynamicTexture* tex_ptr = nullptr;
36913690
{
36923691
std::lock_guard lock(g_dynamic_textures_mutex);

src/visualizer/gui/sequencer_ui_manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030

3131
#include <algorithm>
3232
#include <cctype>
33-
#include <cuda_runtime.h>
3433
#include <cmath>
3534
#include <cstdlib>
35+
#include <cuda_runtime.h>
3636
#include <filesystem>
3737
#include <format>
3838
#include <fstream>

0 commit comments

Comments
 (0)