Skip to content

Commit 25fb689

Browse files
Andrew Kimfacebook-github-bot
authored andcommitted
fix(Runtime): Fix AnimationRigSetup ranSetup condition
Summary: Fix the ranSetup condition check in AnimationRigSetup when checking OnApplicationFocus. Reviewed By: sohailshafiiWk Differential Revision: D46464785 fbshipit-source-id: 58bf0513b1dd0a9eb9b4ac011a307ea1663303f1
1 parent ef79190 commit 25fb689

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Runtime/Scripts/AnimationRigging/AnimationRigSetup.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,10 @@ protected virtual void OnApplicationFocus(bool hasFocus)
220220
{
221221
return;
222222
}
223+
223224
// Don't do anything if the setup process has not run yet. We don't
224225
// want to trigger the creation of any animation rigging jobs.
225-
if (_ranSetup)
226+
if (!_ranSetup)
226227
{
227228
return;
228229
}

0 commit comments

Comments
 (0)