Skip to content

Commit

Permalink
Fix offset expression animation (#13071)
Browse files Browse the repository at this point in the history
* Fix ServerObject subscription Invalidate

* Add Vector3D property type to CompositionGenerator

---------

Co-authored-by: Meloman19 <[email protected]>
  • Loading branch information
2 people authored and grokys committed Oct 2, 2023
1 parent 27b3f04 commit 2c8ef46
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ private class ServerObjectSubscriptionStore

public void Invalidate()
{
if (IsValid)
if (!IsValid)
return;
IsValid = false;
if (Subscribers != null)
Expand Down
3 changes: 2 additions & 1 deletion src/tools/DevGenerators/CompositionGenerator/Generator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,8 @@ static BlockSyntax ApplyStartAnimation(BlockSyntax body, GClass cl, GProperty pr
"Matrix4x4",
"Quaternion",
"Color",
"Avalonia.Media.Color"
"Avalonia.Media.Color",
"Vector3D"
};

static BlockSyntax ApplyGetProperty(BlockSyntax body, GProperty prop, string? expr = null)
Expand Down

0 comments on commit 2c8ef46

Please sign in to comment.