From 328d5d7520b61bdd1d2cca65dd7ccf6441fa2838 Mon Sep 17 00:00:00 2001 From: Bvallon-sl Date: Thu, 13 Apr 2023 10:21:07 +0200 Subject: [PATCH] remove debug logs --- zed-livelink-fusion/Source/Private/main.cpp | 7 ------- zed-livelink-mono/Source/Private/main.cpp | 3 --- 2 files changed, 10 deletions(-) diff --git a/zed-livelink-fusion/Source/Private/main.cpp b/zed-livelink-fusion/Source/Private/main.cpp index cef4071..50796df 100644 --- a/zed-livelink-fusion/Source/Private/main.cpp +++ b/zed-livelink-fusion/Source/Private/main.cpp @@ -305,12 +305,10 @@ StreamedSkeletonData BuildSkeletonsTransformFromZEDObjects(SL_BodyData& bodyData FQuat global_rotation = FQuat(bodyRotation.x, bodyRotation.y, bodyRotation.z, bodyRotation.w); if (rootPosition.ContainsNaN()) { - std::cout << "rootPosition of index : 0 is nan " << std::endl; rootPosition = FVector::ZeroVector; } if (global_rotation.ContainsNaN()) { - std::cout << "global_rotation of index : 0 is nan " << std::endl; global_rotation = FQuat::Identity; } @@ -326,13 +324,11 @@ StreamedSkeletonData BuildSkeletonsTransformFromZEDObjects(SL_BodyData& bodyData FVector position = FVector(worldTranslation.x, worldTranslation.y, worldTranslation.z); if (position.ContainsNaN()) { - std::cout << "worldTranslation of index : "<< i <<" is nan " << std::endl; position = FVector::ZeroVector; } FQuat rotation = FQuat(localRotation.x, localRotation.y, localRotation.z, localRotation.w); if (rotation.ContainsNaN()) { - std::cout << "rotation of index " << i << "is nan " << std::endl; rotation = FQuat::Identity; } @@ -384,9 +380,6 @@ void PopulateSkeletonsData(SL_Bodies& bodies) { remainingKeyList.Remove(bodyData.id); } } - else - { - } } for (int index = 0; index < remainingKeyList.Num(); index++) { diff --git a/zed-livelink-mono/Source/Private/main.cpp b/zed-livelink-mono/Source/Private/main.cpp index 87209bb..a4cf867 100644 --- a/zed-livelink-mono/Source/Private/main.cpp +++ b/zed-livelink-mono/Source/Private/main.cpp @@ -294,7 +294,6 @@ StreamedSkeletonData BuildSkeletonsTransformFromZEDObjects(SL_BodyData& bodyData if (position.ContainsNaN()) { - std::cout << "position of index : 0 is nan " << std::endl; position = FVector::ZeroVector; } @@ -311,7 +310,6 @@ StreamedSkeletonData BuildSkeletonsTransformFromZEDObjects(SL_BodyData& bodyData position = FVector(worldTranslation.x, worldTranslation.y, worldTranslation.z); if (position.ContainsNaN()) { - std::cout << "position of index : " << i << " is nan " << std::endl; position = FVector::ZeroVector; } @@ -319,7 +317,6 @@ StreamedSkeletonData BuildSkeletonsTransformFromZEDObjects(SL_BodyData& bodyData if (jointRotation.ContainsNaN()) { - std::cout << "rotation of index : " << i << " is nan " << std::endl; position = FVector::ZeroVector; }