From 2619050824d750eb381eb45e8a9da9a6b7f9ecdb Mon Sep 17 00:00:00 2001 From: jacob1 Date: Sat, 30 Dec 2023 19:46:12 -0500 Subject: [PATCH] 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 6931f3552018, which was accidentally removed later in a407aba087a9. Since I doubt anyone used this parameter, I'll just keep it at position 6 instead of moving it back to 4. --- src/lua/LuaScriptInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lua/LuaScriptInterface.cpp b/src/lua/LuaScriptInterface.cpp index 19a5eca65..7d81f9eeb 100644 --- a/src/lua/LuaScriptInterface.cpp +++ b/src/lua/LuaScriptInterface.cpp @@ -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 {