Browse Source

Force recurse when opacity changed.

Fixes #1420.
Steven Kirk 7 years ago
parent
commit
7af3eb9058
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/Avalonia.Visuals/Rendering/SceneGraph/SceneBuilder.cs

+ 3 - 2
src/Avalonia.Visuals/Rendering/SceneGraph/SceneBuilder.cs

@@ -170,8 +170,9 @@ namespace Avalonia.Rendering.SceneGraph
                     var clipBounds = bounds.TransformToAABB(contextImpl.Transform).Intersect(clip);
 
                     forceRecurse = forceRecurse ||
-                        node.Transform != contextImpl.Transform ||
-                        node.ClipBounds != clipBounds;
+                        node.ClipBounds != clipBounds ||
+                        node.Opacity != opacity ||
+                        node.Transform != contextImpl.Transform;
 
                     node.Transform = contextImpl.Transform;
                     node.ClipBounds = clipBounds;