diff --git a/Source/AvatarPlugin/Private/AvatarComponent.cpp b/Source/AvatarPlugin/Private/AvatarComponent.cpp index 59e6d6ff7eca46ac6703813e447db5c10489dd5a..bb2835cec373753682fdaf9fd4d5cca021f6c4ea 100644 --- a/Source/AvatarPlugin/Private/AvatarComponent.cpp +++ b/Source/AvatarPlugin/Private/AvatarComponent.cpp @@ -512,9 +512,9 @@ void UAvatarComponent::UpdateCalibration() { pawn->UpdateMeshPositions(pose); if (waitForRelease - && (shouldPressLeftTrigger && shouldPressRightTrigger && (!leftTriggerPressed || !rightTriggerPressed) - || shouldPressLeftTrigger && !leftTriggerPressed - || shouldPressRightTrigger && !rightTriggerPressed)) { + && ((shouldPressLeftTrigger && shouldPressRightTrigger && (!leftTriggerPressed || !rightTriggerPressed)) + || (shouldPressLeftTrigger && !leftTriggerPressed) + || (shouldPressRightTrigger && !rightTriggerPressed))) { waitForRelease = false; } diff --git a/Source/AvatarPlugin/Private/CalibrationPawn.cpp b/Source/AvatarPlugin/Private/CalibrationPawn.cpp index 6c52a90f446c80ce21364a26456557ec4cbb4b82..f13488c2305502f72f8394ea3653ba08e21c0834 100644 --- a/Source/AvatarPlugin/Private/CalibrationPawn.cpp +++ b/Source/AvatarPlugin/Private/CalibrationPawn.cpp @@ -140,7 +140,7 @@ void ACalibrationPawn::SetupPlayerInputComponent(UInputComponent* PlayerInputCom void ACalibrationPawn::ShowMeshes(bool show) { Mesh_LeftHand->SetVisibility(show); Mesh_RightHand->SetVisibility(show); - if (!calibrationComponent || calibrationComponent && calibrationComponent->useFootControllers) { + if ((!calibrationComponent) || (calibrationComponent && calibrationComponent->useFootControllers)) { Mesh_LeftFoot->SetVisibility(show); Mesh_RightFoot->SetVisibility(show); } @@ -157,7 +157,7 @@ void ACalibrationPawn::ShowControllerModels(bool show) { if (RightHand && RightControllerVis) { RightControllerVis->SetIsVisualizationActive(show); } - if (!calibrationComponent || calibrationComponent && calibrationComponent->useFootControllers) { + if ((!calibrationComponent) || (calibrationComponent && calibrationComponent->useFootControllers)) { LeftFootControllerVis->SetIsVisualizationActive(show); RightFootControllerVis->SetIsVisualizationActive(show); } diff --git a/Source/AvatarPlugin/Private/RigUnits.cpp b/Source/AvatarPlugin/Private/RigUnits.cpp index f40f347b26a86dbbef47d713c74acd0d6bae6d4f..e8befb6cc48ce804a080e3ded42f52d9f39bf58e 100644 --- a/Source/AvatarPlugin/Private/RigUnits.cpp +++ b/Source/AvatarPlugin/Private/RigUnits.cpp @@ -39,10 +39,10 @@ FRigUnit_FeetCircularMean_Execute() { LeftDegIn = leftangleDeg; RightDegIn = rightangleDeg; - if (PrevLeftDeg > 90.f && leftangleDeg < -90 || PrevLeftDeg < -90.f && leftangleDeg > 90) { + if ((PrevLeftDeg > 90.f && leftangleDeg < -90) || (PrevLeftDeg < -90.f && leftangleDeg > 90)) { SwitchMode = !SwitchMode; } - if (PrevRightDeg > 90.f && rightangleDeg < -90 || PrevRightDeg < -90.f && rightangleDeg > 90) { + if ((PrevRightDeg > 90.f && rightangleDeg < -90) || (PrevRightDeg < -90.f && rightangleDeg > 90)) { SwitchMode = !SwitchMode; } diff --git a/Source/AvatarPlugin/Public/CalibrationWidget.h b/Source/AvatarPlugin/Public/CalibrationWidget.h index c679389c0f812fcc5bbcf10503a040f4efcb90f7..7ed999cf14b5aa0544d520ab54592f5c5464bfa3 100644 --- a/Source/AvatarPlugin/Public/CalibrationWidget.h +++ b/Source/AvatarPlugin/Public/CalibrationWidget.h @@ -9,7 +9,7 @@ #include "Components/CanvasPanel.h" #include "Components/CanvasPanelSlot.h" #include "Components/Image.h" -#include "Components/Textblock.h" +#include "Components/TextBlock.h" #include "Components/ProgressBar.h" #include "Kismet/GameplayStatics.h"