0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-20 19:51:23 -05:00

Fix path drawing broken in previous commits.

This commit is contained in:
Andrey Antukh 2017-02-27 20:39:02 +01:00
parent 51fd90c64d
commit 8697df75c1
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -125,11 +125,13 @@
ptk/WatchEvent
(watch [_ state stream]
(let [{:keys [id] :as shape} (get-in state [:workspace :drawing])
resize-mtx (get-in state [:workspace :modifiers id :resize])]
resize-mtx (get-in state [:workspace :modifiers id :resize])
shape (cond-> shape
resize-mtx (geom/transform resize-mtx))]
(if-not shape
(rx/empty)
(rx/of (clear-drawing-state)
(uds/add-shape (geom/transform shape resize-mtx))
(uds/add-shape shape)
(uds/select-first-shape)
::uev/interrupt)))))