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 in6931f35520
, which was accidentally removed later ina407aba087
. 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:
parent
a471a0de1f
commit
2619050824
@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user