From a487b0677a79c126c1aefb2c6c02b06fef387a30 Mon Sep 17 00:00:00 2001 From: Florin Malita Date: Fri, 13 Jul 2018 14:08:14 -0400 Subject: [skottie] Make stroke width optional TBR= Change-Id: I432a79b652ffd5838829f32980e2dcca55d57af4 Reviewed-on: https://skia-review.googlesource.com/141283 Reviewed-by: Florin Malita Commit-Queue: Florin Malita --- modules/skottie/src/Skottie.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'modules/skottie') 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 AttachStroke(const skjson::ObjectValue& jstroke, AttachCo stroke_node->setStyle(SkPaint::kStroke_Style); - auto width_attached = BindProperty(jstroke["w"], &ctx->fAnimators, + BindProperty(jstroke["w"], &ctx->fAnimators, [stroke_node](const ScalarValue& w) { stroke_node->setStrokeWidth(w); }); - if (!width_attached) - return nullptr; stroke_node->setStrokeMiter(ParseDefault(jstroke["ml"], 4.0f)); -- cgit v1.2.3