We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f045ab4 commit 9724b9aCopy full SHA for 9724b9a
gdnative-core/src/core_types/variant/serde.rs
@@ -139,7 +139,9 @@ impl Serialize for VariantDispatch {
139
NodePath(v) => newtype_variant!(VariantType::NodePath, v),
140
Rid(v) => newtype_variant!(VariantType::Rid, v),
141
Object(_) => newtype_variant!(VariantType::Object, &Option::<()>::None),
142
- Dictionary(v) => newtype_variant!(VariantType::Dictionary, v),
+ Dictionary(v) => {
143
+ newtype_variant!(VariantType::Dictionary, &DictionaryDispatch(v.new_ref()))
144
+ }
145
VariantArray(v) => {
146
//Allows serializing to non-self-describing formats by avoiding serializing `Variant`s
147
let vec = v.iter().map(|v| v.dispatch()).collect::<Vec<_>>();
0 commit comments