pub fn apply_node_subtree_removal(
document: &mut Document,
plan: &NodeSubtreeRemovalPlan,
) -> Result<(), AssemblyError>Expand description
Apply a planned subtree projection transactionally.
All final track, mesh-instance, and skin references are checked before the document is changed. Source-native skeleton projection is cleared: after authored node deletion it cannot remain a complete account of the new normalized hierarchy.
ยงErrors
Returns AssemblyError if the plan is stale, a forbidden reference
survives, or the projected document is structurally invalid. document
is unchanged on every error.