Fixed bug that left/right hand are shown at invalid location when player doesn't have anything
This commit is contained in:
parent
81c4133264
commit
9a096f3b75
@ -1515,6 +1515,8 @@ namespace spades {
|
||||
}
|
||||
|
||||
Vector3 leftHand, rightHand;
|
||||
leftHand = MakeVector3(0, 0, 0);
|
||||
rightHand = MakeVector3(0, 0, 0);
|
||||
|
||||
// view weapon
|
||||
float sprint = SmoothStep(sprintState);
|
||||
@ -1963,7 +1965,8 @@ namespace spades {
|
||||
}
|
||||
|
||||
// view hands
|
||||
{
|
||||
if(leftHand.GetPoweredLength() > 0.001f &&
|
||||
rightHand.GetPoweredLength() > 0.001f){
|
||||
|
||||
|
||||
ModelRenderParam param;
|
||||
|
Loading…
x
Reference in New Issue
Block a user