Skip to content

Commit

Permalink
Merge pull request #39 from paradoxical-autumn/main
Browse files Browse the repository at this point in the history
fix crashing with UserFromUserRef
  • Loading branch information
Xlinka committed Jul 3, 2024
2 parents 538e480 + 141eaa3 commit 5f74d34
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 5f74d34

Please sign in to comment.