virtual hand fixes especially for android

This commit is contained in:
Mamadou Babaei
2023-03-28 10:34:48 +02:00
parent 708fce2f0c
commit a35e706283
@@ -534,11 +534,13 @@ bool USGVirtualHandComponent::FImpl::InitializeBackend() const
SGLOG_ERROR("Device Scanning already being initialized (function called twice in short succession)."); SGLOG_ERROR("Device Scanning already being initialized (function called twice in short succession).");
return false; return false;
case 0: case 0:
SGLOG_ERROR("Device Scanning is already running within this program."); // Do not pollute the logs!
return false; //SGLOG_ERROR("Device Scanning is already running within this program.");
// We must return here in case there are two virtual hand components are present in the scene.
return true;
case 1: case 1:
SGLOG_ERROR("Successfully started up DeviceScanning from the current program."); SGLOG("Successfully started up DeviceScanning from the current program.");
break;; break;
default: default:
ensureAlwaysMsgf(false, TEXT("Unhandled Init return status code!")); ensureAlwaysMsgf(false, TEXT("Unhandled Init return status code!"));
return false; return false;
@@ -587,8 +589,8 @@ bool USGVirtualHandComponent::FImpl::UninitializeBackend() const
SGLOG_ERROR("There is no deviceScanner running from any program, so disposing is skipped."); SGLOG_ERROR("There is no deviceScanner running from any program, so disposing is skipped.");
return false; return false;
case 1: case 1:
SGLOG_ERROR("Successfully disposed of DeviceScanner resources."); SGLOG("Successfully disposed of DeviceScanner resources.");
break;; break;
default: default:
ensureAlwaysMsgf(false, TEXT("Unhandled Dispose return status code!")); ensureAlwaysMsgf(false, TEXT("Unhandled Dispose return status code!"));
return false; return false;