mirror of
https://github.com/penpot/penpot.git
synced 2025-08-04 11:18:34 +02:00
🐛 Fix problem with shape to path not working
This commit is contained in:
parent
e6ac2c1159
commit
0c0c81e9a5
1 changed files with 5 additions and 1 deletions
|
@ -11,6 +11,7 @@
|
||||||
[app.common.transit :as t]
|
[app.common.transit :as t]
|
||||||
[app.common.types.shape :as shape]
|
[app.common.types.shape :as shape]
|
||||||
[app.common.types.shape.layout :as ctl]
|
[app.common.types.shape.layout :as ctl]
|
||||||
|
[app.common.uuid :as uuid]
|
||||||
[app.render-wasm.api :as api]
|
[app.render-wasm.api :as api]
|
||||||
[beicon.v2.core :as rx]
|
[beicon.v2.core :as rx]
|
||||||
[clojure.core :as c]
|
[clojure.core :as c]
|
||||||
|
@ -116,7 +117,10 @@
|
||||||
id (get shape :id)]
|
id (get shape :id)]
|
||||||
(case k
|
(case k
|
||||||
:parent-id (api/set-parent-id v)
|
:parent-id (api/set-parent-id v)
|
||||||
:type (api/set-shape-type v)
|
:type (do
|
||||||
|
(api/set-shape-type v)
|
||||||
|
(when (or (= v :path) (= v :bool))
|
||||||
|
(api/set-shape-path-content (:content shape))))
|
||||||
:bool-type (api/set-shape-bool-type v)
|
:bool-type (api/set-shape-bool-type v)
|
||||||
:selrect (api/set-shape-selrect v)
|
:selrect (api/set-shape-selrect v)
|
||||||
:show-content (if (= (:type shape) :frame)
|
:show-content (if (= (:type shape) :frame)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue