Skip to content

Commit 47a031f

Browse files
authored
fix: packaging error in shipping mode (#364)
1 parent 01c5cc8 commit 47a031f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Source/RapyutaSimulationPlugins/Private/Drives/RRFloatingMovementComponent.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,10 @@ void URRFloatingMovementComponent::CalculateRVOAvoidanceVelocity(float InDeltaTi
364364
return;
365365
}
366366

367-
const bool bRVODebugEnabled = RAPYUTA_SIM_DEBUG && RVOAvoidanceManager->IsDebugEnabled(RVOAvoidanceUID);
367+
bool bRVODebugEnabled = false;
368+
#if !(UE_BUILD_SHIPPING || UE_BUILD_TEST)
369+
bRVODebugEnabled = RAPYUTA_SIM_DEBUG && RVOAvoidanceManager->IsDebugEnabled(RVOAvoidanceUID);
370+
#endif
368371

369372
//Adjust velocity only if we're in "Walking" mode. We should also check if we're dazed, being knocked around, maybe off-navmesh, etc.
370373
if (!Velocity.IsZero() && IsMovingOnGround() && UpdatedPrimitive)

0 commit comments

Comments
 (0)