Page 1 of 1

[kovarex] [1.1.0] on_pre_build flip_horizontal/vertical are ints, not boolean

Posted: Wed Nov 25, 2020 12:54 am
by Therax
The flip_horizontal and flip_vertical fields of the on_pre_build event are documented as being boolean true/false, but in fact are Lua numbers 0 and 1. This is a problem since in Lua 0 is truthy, so

Code: Select all

if ev.flip_horizontal then ... end
does not behave as expected.

Re: [kovarex] [1.1.0] on_pre_build flip_horizontal/vertical are ints, not boolean

Posted: Wed Nov 25, 2020 1:47 am
by kovarex
Thanks for the report, fixed for the 1.1.1 release.