Skip to main content

check_edit_remapped

Function check_edit_remapped 

Source
pub fn check_edit_remapped(
    original: &BreadFile,
    edited: &BreadFile,
    editor: Editor<'_>,
    remap: &Remap,
) -> Result<(), Vec<Violation>>
Expand description

Checks that edited changes original only where editor may, with the nodes and meshes moved or removed as remap says. Entries about a removed node may be gone, whoever owns them; an entry that names a moved node or mesh must name its new index. A mesh repair keeps every index, so for Editor::MeshRepair a remap other than the identity is a violation.