From b04c06a6161e0feb5f5a62106301b5beb206032d Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Thu, 27 Jun 2019 23:45:54 -0600 Subject: [PATCH] light: fix _shadow -1 being interpreted as _shadow 1 for bmodels --- include/light/settings.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/light/settings.hh b/include/light/settings.hh index f899d0c0..335a37b6 100644 --- a/include/light/settings.hh +++ b/include/light/settings.hh @@ -147,7 +147,8 @@ private: public: bool boolValue() const { - return static_cast(_value); + // we use -1 to mean false + return intValue() == 1; } int intValue() const {