Browse Source

Fix offset expression animation (#13071)

* Fix ServerObject subscription Invalidate

* Add Vector3D property type to CompositionGenerator

---------

Co-authored-by: Meloman19 <23280622+Meloman19@users.noreply.github.com>
pull/13079/head
Meloman19 3 years ago
committed by GitHub
parent
commit
7479f53750
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Avalonia.Base/Rendering/Composition/Server/ServerObject.cs
  2. 3
      src/tools/DevGenerators/CompositionGenerator/Generator.cs

2
src/Avalonia.Base/Rendering/Composition/Server/ServerObject.cs

@ -27,7 +27,7 @@ namespace Avalonia.Rendering.Composition.Server
public void Invalidate() public void Invalidate()
{ {
if (IsValid) if (!IsValid)
return; return;
IsValid = false; IsValid = false;
if (Subscribers != null) if (Subscribers != null)

3
src/tools/DevGenerators/CompositionGenerator/Generator.cs

@ -435,7 +435,8 @@ return;
"Matrix4x4", "Matrix4x4",
"Quaternion", "Quaternion",
"Color", "Color",
"Avalonia.Media.Color" "Avalonia.Media.Color",
"Vector3D"
}; };
static BlockSyntax ApplyGetProperty(BlockSyntax body, GProperty prop, string? expr = null) static BlockSyntax ApplyGetProperty(BlockSyntax body, GProperty prop, string? expr = null)

Loading…
Cancel
Save