diff options
Diffstat (limited to 'experimental/skottie/Skottie.cpp')
-rw-r--r-- | experimental/skottie/Skottie.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/experimental/skottie/Skottie.cpp b/experimental/skottie/Skottie.cpp index bb98ad75f0..1b5886eee0 100644 --- a/experimental/skottie/Skottie.cpp +++ b/experimental/skottie/Skottie.cpp @@ -149,7 +149,9 @@ sk_sp<sksg::RenderNode> AttachComposition(const Json::Value&, AttachContext* ctx sk_sp<sksg::Path> AttachPath(const Json::Value& jpath, AttachContext* ctx) { auto path_node = sksg::Path::Make(); return BindProperty<ShapeValue>(jpath, &ctx->fAnimators, - [path_node](const ShapeValue& p) { path_node->setPath(p); }) + [path_node](const ShapeValue& p) { + path_node->setPath(ValueTraits<ShapeValue>::As<SkPath>(p)); + }) ? path_node : nullptr; } |