Browse Source

Refactor createLightParamCentered()

tags/v1.1.6
Andrew Belt 4 years ago
parent
commit
ebeeb0f26b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      include/helpers.hpp

+ 2
- 2
include/helpers.hpp View File

@@ -134,8 +134,8 @@ TParamWidget* createLightParam(math::Vec pos, engine::Module* module, int paramI

template <class TParamWidget>
TParamWidget* createLightParamCentered(math::Vec pos, engine::Module* module, int paramId, int firstLightId) {
TParamWidget* o = createParamCentered<TParamWidget>(pos, module, paramId);
o->setFirstLightId(firstLightId);
TParamWidget* o = createLightParam<TParamWidget>(pos, module, paramId, firstLightId);
o->box.pos = o->box.pos.minus(o->box.size.div(2));
return o;
}



Loading…
Cancel
Save