Merge pull request #210 from uxbox/390/bug-fill-options

🐛 Fix refresh of options menu
This commit is contained in:
Andrey Antukh 2020-05-13 15:56:57 +02:00 committed by GitHub
commit cd17eccd43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -25,7 +25,9 @@
[np op]
(let [new-shape (obj/get np "shape")
old-shape (obj/get op "shape")]
(and (identical? (:fill-color new-shape)
(and (= (:id new-shape)
(:id old-shape))
(identical? (:fill-color new-shape)
(:fill-color old-shape))
(identical? (:fill-opacity new-shape)
(:fill-opacity old-shape)))))

View File

@ -25,7 +25,9 @@
[np op]
(let [new-shape (obj/get np "shape")
old-shape (obj/get op "shape")]
(and (identical? (:stroke-style new-shape)
(and (= (:id new-shape)
(:id old-shape))
(identical? (:stroke-style new-shape)
(:stroke-style old-shape))
(identical? (:stroke-alignment new-shape)
(:stroke-alignment old-shape))