Files
texturecraft/crates/engine/src/layer_selection/multi_selection.rs
T
chasse20 26490af2b9 Auto: Harden command and clone bounds and reduce mask allocations
Reject overflowing set indexes, saturate layer moves and clone offsets, and validate path corner flags before mutation. Clear discarded path caches and replace disabled-mask previews with a blank upload.

Reduce repeated selection allocations and temporary mask buffers. Preserve public reexports while separating types, and complete scoped comment and guard-spacing cleanup.

Validated paint and focused engine tests, workspace Clippy, production wasm checks, layering and formatting.
2026-11-18 04:14:11 +00:00

13 lines
513 B
Rust

use texturecraft_core::LayerId;
/// The layers selected in one texture set together with the active one.
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct MultiSelection {
/// The active layer these were picked with; another selected layer ends the selection.
pub active: LayerId,
/// Where a Shift+click range starts: the last layer clicked without Shift.
pub anchor: LayerId,
/// Every selected layer, the active one included, in the order they were picked.
pub layers: Vec<LayerId>,
}