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:
parent
51fd90c64d
commit
8697df75c1
1 changed files with 4 additions and 2 deletions
|
@ -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)))))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue