Skip to content

Commit c2a2947

Browse files
Desktop: Fix serde-based document migrations not being applied in non-Wasm environments (#3580)
Desktop: Fix serde based migrations not beeing applied
1 parent bd1f7ee commit c2a2947

File tree

1 file changed

+5
-5
lines changed
  • node-graph/graph-craft/src/document

1 file changed

+5
-5
lines changed

node-graph/graph-craft/src/document/value.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -189,19 +189,19 @@ tagged_value! {
189189
// TABLE TYPES
190190
// ===========
191191
GraphicUnused(Graphic), // TODO: This is unused but removing it causes `cargo test` to infinitely recurse its type solving; figure out why and then remove this
192-
#[cfg_attr(target_family = "wasm", serde(deserialize_with = "graphic_types::migrations::migrate_vector"))] // TODO: Eventually remove this migration document upgrade code
192+
#[serde(deserialize_with = "graphic_types::migrations::migrate_vector")] // TODO: Eventually remove this migration document upgrade code
193193
#[serde(alias = "VectorData")]
194194
Vector(Table<Vector>),
195-
#[cfg_attr(target_family = "wasm", serde(deserialize_with = "graphic_types::raster_types::image::migrate_image_frame"))] // TODO: Eventually remove this migration document upgrade code
195+
#[serde(deserialize_with = "graphic_types::raster_types::image::migrate_image_frame")] // TODO: Eventually remove this migration document upgrade code
196196
#[serde(alias = "ImageFrame", alias = "RasterData", alias = "Image")]
197197
Raster(Table<Raster<CPU>>),
198-
#[cfg_attr(target_family = "wasm", serde(deserialize_with = "graphic_types::graphic::migrate_graphic"))] // TODO: Eventually remove this migration document upgrade code
198+
#[serde(deserialize_with = "graphic_types::graphic::migrate_graphic")] // TODO: Eventually remove this migration document upgrade code
199199
#[serde(alias = "GraphicGroup", alias = "Group")]
200200
Graphic(Table<Graphic>),
201-
#[cfg_attr(target_family = "wasm", serde(deserialize_with = "graphic_types::artboard::migrate_artboard"))] // TODO: Eventually remove this migration document upgrade code
201+
#[serde(deserialize_with = "graphic_types::artboard::migrate_artboard")] // TODO: Eventually remove this migration document upgrade code
202202
#[serde(alias = "ArtboardGroup")]
203203
Artboard(Table<Artboard>),
204-
#[cfg_attr(target_family = "wasm", serde(deserialize_with = "core_types::misc::migrate_color"))] // TODO: Eventually remove this migration document upgrade code
204+
#[serde(deserialize_with = "core_types::misc::migrate_color")] // TODO: Eventually remove this migration document upgrade code
205205
#[serde(alias = "ColorTable", alias = "OptionalColor")]
206206
Color(Table<Color>),
207207
GradientTable(Table<GradientStops>),

0 commit comments

Comments
 (0)