From 2b38bfa07bf20afc27646c5fdf43f0e3899bf914 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 8 Mar 2023 14:51:43 +0100 Subject: editor: whitespace --- editor/inspect-types.cpp | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'editor') diff --git a/editor/inspect-types.cpp b/editor/inspect-types.cpp index 07b18970..110ebabf 100644 --- a/editor/inspect-types.cpp +++ b/editor/inspect-types.cpp @@ -47,23 +47,16 @@ struct entity_accessors { }, entity::type::field{"pass-mode"_s, [](const scenery_ref& x) { return x.frame.passability; }, - [](scenery_ref& x, pass_mode value) { x.chunk().with_scenery_update(x.index(), [&] { x.frame.passability = value; }); - }, + [](scenery_ref& x, pass_mode value) { x.chunk().with_scenery_update(x.index(), [&] { x.frame.passability = value; }); }, }, entity::type::field{"bbox-offset"_s, [](const scenery_ref& x) { return x.frame.bbox_offset; }, - [](scenery_ref& x, Vector2b value) { x.chunk().with_scenery_update(x.index(), [&] { x.frame.bbox_offset = value; }); - }, - [](const scenery_ref& x) { - return x.frame.passability == pass_mode::pass - ? field_status::readonly - : field_status::enabled; - }, + [](scenery_ref& x, Vector2b value) { x.chunk().with_scenery_update(x.index(), [&] { x.frame.bbox_offset = value; }); }, + [](const scenery_ref& x) { return x.frame.passability == pass_mode::pass ? field_status::readonly : field_status::enabled; }, }, entity::type::field{"bbox-size"_s, [](const scenery_ref& x) { return x.frame.bbox_size; }, - [](scenery_ref& x, Vector2ub value) { x.chunk().with_scenery_update(x.index(), [&] { x.frame.bbox_size = value; }); - }, + [](scenery_ref& x, Vector2ub value) { x.chunk().with_scenery_update(x.index(), [&] { x.frame.bbox_size = value; }); }, [](const scenery_ref& x) { return x.frame.passability == pass_mode::pass ? field_status::readonly : field_status::enabled; }, }, entity::type::field{"interactive"_s, -- cgit v1.2.3