From 6e606fdc519910594898ae364937037632936952 Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Mon, 3 Sep 2018 15:15:27 +0300 Subject: [PATCH] Fixed incorrect rotation of welding tools and other 2-handed items that are held in one hand when not aiming. The items were rotated according to the left hand, but positioned on the right hand. --- .../Source/Characters/Animation/HumanoidAnimController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Barotrauma/BarotraumaShared/Source/Characters/Animation/HumanoidAnimController.cs b/Barotrauma/BarotraumaShared/Source/Characters/Animation/HumanoidAnimController.cs index 04875d727..d503d7df7 100644 --- a/Barotrauma/BarotraumaShared/Source/Characters/Animation/HumanoidAnimController.cs +++ b/Barotrauma/BarotraumaShared/Source/Characters/Animation/HumanoidAnimController.cs @@ -1226,7 +1226,7 @@ namespace Barotrauma transformedHoldPos = rightHand.pullJoint.WorldAnchorA - transformedHandlePos[0]; itemAngle = (rightHand.Rotation + (holdAngle - MathHelper.PiOver2) * Dir); } - if (character.SelectedItems[1] == item) + else if (character.SelectedItems[1] == item) { if (leftHand.IsSevered) return; transformedHoldPos = leftHand.pullJoint.WorldAnchorA - transformedHandlePos[1];