0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-26 08:45:34 -05:00

Fix blocked groups selection

This commit is contained in:
Jesús Espino 2016-04-15 18:05:07 +02:00 committed by Andrey Antukh
parent 39df77e6ed
commit 70282daaf7
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -14,7 +14,6 @@
[uxbox.state.shapes :as stsh]
[uxbox.schema :as sc]
[uxbox.xforms :as xf]
[uxbox.shapes :as sh]
[uxbox.data.pages :as udp]
[uxbox.util.geom.point :as gpt]
[uxbox.util.data :refer (index-of)]))
@ -305,7 +304,8 @@
xf (comp
(filter #(= (:page %) pageid))
(remove :hidden)
(remove :blocked)
(remove #(and (not (:blocked %)) (= (:type %) :builtin/group)))
(remove #(and (not= % (sh/resolve-parent %)) (:blocked (sh/resolve-parent %))))
(map sh/outer-rect')
(filter #(sh/contained-in? % selrect))
(map :id))]