diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-08 14:39:34 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-08 14:39:34 +0100 |
commit | a1802772a27ce25132d047f17c7ecce2077f87b2 (patch) | |
tree | 170c59f5602f25b1a93d8dd787a8831de900f187 | |
parent | 1b8db82ddf5819dcae7b549a4263a099e487c3d0 (diff) |
editor: fix bbox in inspector not rotating
-rw-r--r-- | editor/inspect-types.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/inspect-types.cpp b/editor/inspect-types.cpp index 49041649..07b18970 100644 --- a/editor/inspect-types.cpp +++ b/editor/inspect-types.cpp @@ -33,7 +33,7 @@ struct entity_accessors<scenery_ref> { }, entity::type<rotation>::field{"rotation"_s, [](const scenery_ref& x) { return x.frame.r; }, - [](scenery_ref& x, rotation r) { x.frame.r = r; }, + [](scenery_ref& x, rotation r) { x.rotate(r); }, }, entity::type<scenery::frame_t>::field{"frame"_s, [](const scenery_ref& x) { return x.frame.frame; }, |