Closed setzer22 closed 1 year ago
@setzer22 Which version of godot-rust did you use? I can't reproduce it on v0.10.1, on WSL.
I was on 0.10.0
, I will try to reproduce on newer versions :+1:
Recently a bug was discovered that caused Option::<Ref<T>>::from_variant
to incorrectly return Err
when passed a null object variant value. This was since fixed in #1002. From the description of the issue it looks like this would've been fixed as well.
Closing for now, but feel free to re-open if you're still experiencing this in 0.11.2!
I have the following struct:
When this is instanced, I can see the exported property in the Godot editor, and I can also set values as expected. The initial value is shown as "empty", so the field is correctly being initialized to
None
and returned asnull
on the Godot side.However, when I have set the value for it and click "Clear" from the inspector, I get the following error: