Skip to content

Lua bindings for light record colors do not use color type

Lua bindings for light record color field do not use the Lua color type. Both the color field and record template use an int to construct/access color. The records internally store color as an 8-byte triplet for RGB, but this should not be how we expose the field to Lua.

https://gitlab.com/OpenMW/openmw/-/blob/master/apps/openmw/mwlua/types/light.cpp?ref_type=heads#L107

Things that should be changed:

  1. Accept color type when constructing a new Light record
  2. Return color type when accessing Light.color field
  3. Update docs to reflect new type