sim.loadStamp: default includePressure to 1

It doesn't make much sense for a Lua function to vary depending on whether the user holds shift or not.

This restores the original behavior of includePressure in 6931f35520, which was accidentally removed later in a407aba087. Since I doubt anyone used this parameter, I'll just keep it at position 6 instead of moving it back to 4.
This commit is contained in:
jacob1 2023-12-30 19:46:12 -05:00
parent a471a0de1f
commit 2619050824
No known key found for this signature in database
GPG Key ID: 4E58A32D510E1995

View File

@ -2185,7 +2185,7 @@ int LuaScriptInterface::simulation_loadStamp(lua_State * l)
};
auto hflip = lua_toboolean(l, 4);
auto rotation = luaL_optint(l, 5, 0) & 3; // [0, 3] rotations
bool includePressure = luaL_optint(l, 6, !luacon_controller->GetView()->ShiftBehaviour());
bool includePressure = luaL_optint(l, 6, 1);
auto &client = Client::Ref();
if (lua_isstring(l, 1)) //Load from 10 char name, or full filename
{