diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-08 14:51:43 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-08 14:53:32 +0100 |
| commit | 2b38bfa07bf20afc27646c5fdf43f0e3899bf914 (patch) | |
| tree | c7c4a282d6da5c0b3e8bce0fa6f20f32f6ee3d46 /editor | |
| parent | a1802772a27ce25132d047f17c7ecce2077f87b2 (diff) | |
editor: whitespace
Diffstat (limited to 'editor')
| -rw-r--r-- | editor/inspect-types.cpp | 15 |
1 files changed, 4 insertions, 11 deletions
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<scenery_ref> { }, entity::type<pass_mode>::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<Vector2b>::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<Vector2ub>::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<bool>::field{"interactive"_s, |
