From 5fc27a759469c52587a5c166814601804fc275a2 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Fri, 8 Apr 2022 13:39:26 +0200 Subject: [PATCH] :bug: Blur not working --- frontend/src/app/main/ui/shapes/custom_stroke.cljs | 4 ++-- frontend/src/app/main/ui/shapes/text/fo_text.cljs | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/frontend/src/app/main/ui/shapes/custom_stroke.cljs b/frontend/src/app/main/ui/shapes/custom_stroke.cljs index a86da91174..18bd62c006 100644 --- a/frontend/src/app/main/ui/shapes/custom_stroke.cljs +++ b/frontend/src/app/main/ui/shapes/custom_stroke.cljs @@ -332,8 +332,8 @@ ;; There are any shadows (and (seq (->> (:shadow shape) (remove :hidden))) (not (cph/frame-shape? shape))) - ;; There are no strokes and a blur - (and (:blur shape) (-> shape :blur :hidden not) (not (cph/frame-shape? shape)) (empty? (:strokes shape)))) + ;; There is a blur + (and (:blur shape) (-> shape :blur :hidden not) (not (cph/frame-shape? shape)))) (obj/set! "filter" (dm/fmt "url(#filter_%)" render-id))) svg-defs (:svg-defs shape {}) diff --git a/frontend/src/app/main/ui/shapes/text/fo_text.cljs b/frontend/src/app/main/ui/shapes/text/fo_text.cljs index 52f9915bb8..86ef063ed1 100644 --- a/frontend/src/app/main/ui/shapes/text/fo_text.cljs +++ b/frontend/src/app/main/ui/shapes/text/fo_text.cljs @@ -201,9 +201,7 @@ content (cond-> content plain-colors? - (remap-colors color-mapping)) - - ] + (remap-colors color-mapping))] [:foreignObject {:x x