@@ -122,15 +122,15 @@ void UsdUndoStateDelegate::invertSetField(
122122 // Sequence: invertSetField(/parent, primChildren, [child]) -> child missing now
123123 // invertDeleteSpec(/parent/child) -> recreates child
124124 // The layer is only temporarily in a bad state, nothing special to do.
125- //
125+ //
126126 // Case 2 : child permanently gone (undo of creation)
127- // This case is only reproducible when the data on the layer no longer matches what is expected
128- // by the invert functions, and can lead to a corrupt layer state causing crashes.
127+ // This case is only reproducible when the data on the layer no longer matches what is
128+ // expected by the invert functions, and can lead to a corrupt layer state causing crashes.
129129 // Sequence: invertCreateSpec(/root/geo) -> deletes geo
130130 // invertSetField(/root, primChildren, [geo]) -> missing geo
131131 // We need to filter out the bad children.
132132 //
133- // To distinguish these two cases we keep track of the paths hit by invertCreateSpec() in
133+ // To distinguish these two cases we keep track of the paths hit by invertCreateSpec() in
134134 // _deletedByUndoCreate. It is reset for every inversion sequence.
135135 VtValue filteredInverse = inverse;
136136 if (!_deletedByUndoCreate.empty () && inverse.IsHolding <std::vector<TfToken>>()
@@ -146,8 +146,7 @@ void UsdUndoStateDelegate::invertSetField(
146146 = isPrimChildren ? path.AppendChild (childName) : path.AppendProperty (childName);
147147 // If not in a normal delete scenario, and the child doesn't exist, filter it out,
148148 // leaving a stale reference to it would corrupt the layer.
149- if (_deletedByUndoCreate.count (childPath) != 0
150- && !layerData->HasSpec (childPath)) {
149+ if (_deletedByUndoCreate.count (childPath) != 0 && !layerData->HasSpec (childPath)) {
151150 TF_DEBUG (USDUFE_UNDOSTATEDELEGATE)
152151 .Msg (
153152 " invertSetField: filtering child '%s' (deleted by invertCreateSpec "
0 commit comments