You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let document_message_handler = serde_json::from_str::<DocumentMessageHandler>(serialized_content)
1763
+
// Walk the document JSON and rewrite any `TaggedValue` variants that have been removed since being released as `"None"` so the document still deserializes.
1764
+
// `migrate_node` then drops the resulting orphan node inputs so the value never reaches graph execution.
/// Attempts to downcast the dynamic type to a tagged value
@@ -211,7 +210,6 @@ tagged_value! {
211
210
Stroke(Stroke),
212
211
Gradient(Gradient),
213
212
Font(Font),
214
-
BrushCache(BrushCache),
215
213
DocumentNode(DocumentNode),
216
214
ContextFeatures(ContextFeatures),
217
215
Curve(Curve),
@@ -412,6 +410,35 @@ impl TaggedValue {
412
410
_ => panic!("Passed value is not of type u32"),
413
411
}
414
412
}
413
+
414
+
/// Walks a JSON document tree and replaces any externally-tagged `TaggedValue` whose discriminant is in `REMOVED_VARIANTS` with the unit variant `"None"`.
415
+
/// Lets documents written before a variant was removed continue to deserialize. The document migration step then removes any orphan node inputs that result.
// Names of `TaggedValue` variants that have been removed since being released. Any object of the form `{"<name>": <payload>}` is rewritten to `"None"` on load.
0 commit comments