Expand description
Per-vertex protection around a position-moving operation.
with_protection runs any operation in a transaction, then scales back
what it did to the listed vertices. It knows nothing of the operation’s
insides, so brushes keep one code path whether or not anything is protected.
Functions§
- check_
protection - Checks a protection list the way
with_protectiondoes. - with_
protection - Runs
opintx, then scales each listed vertex’s move by its weight:0leaves the vertex at the bits it had beforeop,1keeps the whole move, and values in between land on the straight line between the two.