diff options
Diffstat (limited to 'modules/skottie/src/Skottie.cpp')
-rw-r--r-- | modules/skottie/src/Skottie.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/skottie/src/Skottie.cpp b/modules/skottie/src/Skottie.cpp index 88e42d4e58..20390eedc5 100644 --- a/modules/skottie/src/Skottie.cpp +++ b/modules/skottie/src/Skottie.cpp @@ -324,12 +324,10 @@ sk_sp<sksg::PaintNode> AttachStroke(const skjson::ObjectValue& jstroke, AttachCo stroke_node->setStyle(SkPaint::kStroke_Style); - auto width_attached = BindProperty<ScalarValue>(jstroke["w"], &ctx->fAnimators, + BindProperty<ScalarValue>(jstroke["w"], &ctx->fAnimators, [stroke_node](const ScalarValue& w) { stroke_node->setStrokeWidth(w); }); - if (!width_attached) - return nullptr; stroke_node->setStrokeMiter(ParseDefault<SkScalar>(jstroke["ml"], 4.0f)); |