From ebeeb0f26b57cb4a7033b06f2d61725b50298eb4 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Tue, 15 Oct 2019 01:12:03 -0400 Subject: [PATCH] Refactor createLightParamCentered() --- include/helpers.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/helpers.hpp b/include/helpers.hpp index ebde5c3a..e7c490ed 100644 --- a/include/helpers.hpp +++ b/include/helpers.hpp @@ -134,8 +134,8 @@ TParamWidget* createLightParam(math::Vec pos, engine::Module* module, int paramI template TParamWidget* createLightParamCentered(math::Vec pos, engine::Module* module, int paramId, int firstLightId) { - TParamWidget* o = createParamCentered(pos, module, paramId); - o->setFirstLightId(firstLightId); + TParamWidget* o = createLightParam(pos, module, paramId, firstLightId); + o->box.pos = o->box.pos.minus(o->box.size.div(2)); return o; }