light: fix _shadow -1 being interpreted as _shadow 1 for bmodels

This commit is contained in:
Eric Wasylishen 2019-06-27 23:45:54 -06:00
parent 5010dc92fb
commit b04c06a616
1 changed files with 2 additions and 1 deletions

View File

@ -147,7 +147,8 @@ private:
public:
bool boolValue() const {
return static_cast<bool>(_value);
// we use -1 to mean false
return intValue() == 1;
}
int intValue() const {