From a1802772a27ce25132d047f17c7ecce2077f87b2 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 8 Mar 2023 14:39:34 +0100 Subject: editor: fix bbox in inspector not rotating --- editor/inspect-types.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor') 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 { }, entity::type::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::field{"frame"_s, [](const scenery_ref& x) { return x.frame.frame; }, -- cgit v1.2.3