light: fix _shadow -1 being interpreted as _shadow 1 for bmodels
This commit is contained in:
parent
5010dc92fb
commit
b04c06a616
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue