Closed mhoff12358 closed 1 year ago
This is related to https://github.com/godot-rust/gdnative/pull/1002 from gdnative. That was solved by making Variants check for this case and say that they're of type nil rather than object. That is probably a good solution for this, but we'll also need a way to have the setter take in an Option<Gd<T>>
rather than a Gd<T>
.
Given an exported property like this:
with a setter like this:
This will crash during with the null pointer inside it and then it calls
try_to
because it creates a Gdready
on it.