Commit c65d298
philter
Foreground fill fix
This fixes a bug where a layout that doesn't already have a background fill/stroke wouldn't render an added foreground fill/stroke. The root cause was that LayoutComponent only checked its own shape paints before making a render path. Now we check both its shape paints and its ForegroundDrawable's shape paints.
In addition, this PR make sure to update the foreground shape paint's opacity and blend modes using that of the layout component.
**Before Fix:**
https://github.com/user-attachments/assets/6564d048-3c52-4cc4-9054-dbde04c52369
**After Fix:**
https://github.com/user-attachments/assets/8575aa8a-3c8b-4595-aea7-0452ae170bc0
Diffs=
697637dd27 Foreground fill fix (#8991)
899ce7e893 add boolean negate converter (#8992)1 parent 813adf5 commit c65d298
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Submodule rive-runtime updated 9 files
- .rive_head+1-1
- dev/defs/data_bind/converters/data_converter_boolean_negate.json+8
- include/rive/data_bind/converters/data_converter_boolean_negate.hpp+22
- include/rive/foreground_layout_drawable.hpp+2
- include/rive/generated/core_registry.hpp+3
- include/rive/generated/data_bind/converters/data_converter_boolean_negate_base.hpp+36
- src/data_bind/converters/data_converter_boolean_negate.cpp+25
- src/foreground_layout_drawable.cpp+29
- src/generated/data_bind/converters/data_converter_boolean_negate_base.cpp+11
0 commit comments