AnimationWarping plugin fails to compile on 5.6.1 Test builds with UE_ENABLE_DEBUG_DRAWING defined

DebugDrawScale is not declared in this particular build setup.

First error of many:

[1/4] Compile [x64] AnimNode_OrientationWarping.cpp
11>AnimNode_OrientationWarping.cpp(522,53): Error C2065 : 'DebugDrawScale': undeclared identifier
    FVector DebugArrowOffset = FVector::ZAxisVector * DebugDrawScale;

Steps to Reproduce

  1. Add GlobalDefinitions.Add(“UE_ENABLE_DEBUG_DRAWING=1”); to game Target.cs.
  2. Compile game build in Test configuration.
  3. Encounter error compiling AnimNode_OrientationWarping.cpp.

We have fixed it by adding the following on line 518 of AnimNode_OrientationWarping.cpp:

#if !ENABLE_ANIM_DEBUG && !WITH_EDITORONLY_DATA
	constexpr float DebugDrawScale = 1.f;
#endif // !ENABLE_ANIM_DEBUG && !WITH_EDITORONLY_DATA

Hi, thanks for reporting this. Do you also have bUseLoggingInShipping/USE_LOGGING_IN_SHIPPING set in your project? I had to enable that, as well as UE_ENABLE_DEBUG_DRAWING, to get a repro.

I see errors in the following files:

  • AnimNode_OrientationWarping.cpp
  • StrafeWarpingTrait.cpp
  • MotionMatchingTrait.cpp
  • GameplayTask.cpp
  • GameplayTasksComponent.cpp

Do you see any others? Could you share your error list?