Skip to content

Commit

Permalink
fix crashing
Browse files Browse the repository at this point in the history
  • Loading branch information
paradoxical-autumn committed Jul 3, 2024
1 parent 538e480 commit 141eaa3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ProjectObsidian/ProtoFlux/Users/UserFromUserRef.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ public class UserFromUserRef : ObjectFunctionNode<FrooxEngineContext, User>

protected override User Compute(FrooxEngineContext context)
{
if (UserRef.Evaluate(context) == null)
{
return null;
}
UserRef userRef = UserRef.Evaluate(context);
return userRef.Target;
}
Expand Down

0 comments on commit 141eaa3

Please sign in to comment.