mirror of
https://github.com/penpot/penpot.git
synced 2025-07-26 04:17:12 +02: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
|
ptk/WatchEvent
|
||||||
(watch [_ state stream]
|
(watch [_ state stream]
|
||||||
(let [{:keys [id] :as shape} (get-in state [:workspace :drawing])
|
(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
|
(if-not shape
|
||||||
(rx/empty)
|
(rx/empty)
|
||||||
(rx/of (clear-drawing-state)
|
(rx/of (clear-drawing-state)
|
||||||
(uds/add-shape (geom/transform shape resize-mtx))
|
(uds/add-shape shape)
|
||||||
(uds/select-first-shape)
|
(uds/select-first-shape)
|
||||||
::uev/interrupt)))))
|
::uev/interrupt)))))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue