sol2
sol2 copied to clipboard
Setter not working in sol::property with static classes (only release 3.3.0)
Using latest release (3.3.0) sol::property setter method is not working:
auto engine = lua.new_usertype<Engine>("Engine", sol::no_constructor);
engine["callTouch"] = sol::property(&Engine::isCallTouch, &Engine::setCallTouch);
On release 3.2.3:
print(Engine.callTouch) -- working
Engine.callTouch = true -- working
On release 3.3.0:
print(Engine.callTouch) -- working
Engine.callTouch = true -- not working
Looks like a duplicate of #1268