mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
Move tool: the layer boundary keys skip the same locks as Auto-Select (#18157)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
046f4fe97c
commit
237d93c25f
1 file changed
+1
-1
@@ -121,7 +121,7 @@ pub fn boundary_candidates(doc: &Document, x: i32, y: i32) -> Vec<LayerId> {
|
||||
layers_hit(doc, x, y, true)
|
||||
.into_iter()
|
||||
.filter(|id| {
|
||||
let locks = doc.effective_locks(*id);
|
||||
let locks = crate::layer_multi_cmds::move_locks(doc, *id);
|
||||
!locks.all && !locks.position && !doc.is_background(*id) && doc.layer(*id).is_some_and(|l| l.artboard().is_none())
|
||||
})
|
||||
.collect()
|
||||
|
||||
Reference in new issue
Block a user