Browse Source

Fix typo in AnimationController

Eugene Kozlov 4 years ago
parent
commit
429aaa8eab
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Urho3D/Graphics/AnimationController.cpp

+ 1 - 1
Source/Urho3D/Graphics/AnimationController.cpp

@@ -549,7 +549,7 @@ float AnimationController::GetFadeTime(const String& name) const
     unsigned index;
     AnimationState* state;
     FindAnimation(name, index, state);
-    return index != M_MAX_UNSIGNED ? animations_[index].targetWeight_ : 0.0f;
+    return index != M_MAX_UNSIGNED ? animations_[index].fadeTime_ : 0.0f;
 }
 
 float AnimationController::GetAutoFade(const String& name) const