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.
src/godot/builtins_pyx/conversion.pyx.j2
1 parent 2705887 commit 9d57991Copy full SHA for 9d57991
src/godot/builtins_pyx/conversion.pyx.j2
@@ -72,6 +72,7 @@ cdef object gd_variant_steal_into_pyobj(const gd_variant_t *gdvar):
72
# TODO: This conversion relies on godot String and lookup into bindings
73
# modules, wouldn't it be better to create a `ObjectFromVariant` lazy
74
# class instead ?
75
+ # Note this return `None` if the object is NULL
76
return BaseGDObject.cast_from_variant(gdvar)
77
# TODO: Would it be possible to directly dig into the variant for simple types ?
78
elif gdtype == gdextension_interface.{{ api.bool_type.variant_type_name }}:
0 commit comments