01-17-2019, 10:37 AM
(01-17-2019, 07:54 AM)nemyax Wrote: For some reason the API's return value type for scene lights is now different from the one for default lights, so the plug works with both types.In v2.2.1 Björng changed the way that value for scene lights is returned and that broke the render exporters - it's a know issue to be fixed.
I hope he could to add back a option to export the old way too.
In the mean time - if you don't care about the light names - then you could to check if the light's data contains its name or not. Then you plugin can work with both versions.
The old way the wpa:lights/1 would to return a list of light data like this:
[{Name, [{opengl,[{type,...},...]}|Props} | Ligths] :: ([{Name,Properties},..])
and now it's returning this way:
[[{opengl,[{type,...},...]}|Props] | Ligths] :: ([Properties,..])