aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--modules/skottie/src/Skottie.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/skottie/src/Skottie.cpp b/modules/skottie/src/Skottie.cpp
index 69f595fd48..6cfeddcfce 100644
--- a/modules/skottie/src/Skottie.cpp
+++ b/modules/skottie/src/Skottie.cpp
@@ -150,7 +150,10 @@ sk_sp<sksg::Path> AttachPath(const skjson::Value& jpath, AttachContext* ctx) {
auto path_node = sksg::Path::Make();
return BindProperty<ShapeValue>(jpath, &ctx->fAnimators,
[path_node](const ShapeValue& p) {
- path_node->setPath(ValueTraits<ShapeValue>::As<SkPath>(p));
+ // FillType is tracked in the SG node, not in keyframes -- make sure we preserve it.
+ auto path = ValueTraits<ShapeValue>::As<SkPath>(p);
+ path.setFillType(path_node->getFillType());
+ path_node->setPath(path);
})
? path_node
: nullptr;