Skip to content

Commit 9d57991

Browse files
committed
Minor comment in src/godot/builtins_pyx/conversion.pyx.j2
1 parent 2705887 commit 9d57991

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/godot/builtins_pyx/conversion.pyx.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ cdef object gd_variant_steal_into_pyobj(const gd_variant_t *gdvar):
7272
# TODO: This conversion relies on godot String and lookup into bindings
7373
# modules, wouldn't it be better to create a `ObjectFromVariant` lazy
7474
# class instead ?
75+
# Note this return `None` if the object is NULL
7576
return BaseGDObject.cast_from_variant(gdvar)
7677
# TODO: Would it be possible to directly dig into the variant for simple types ?
7778
elif gdtype == gdextension_interface.{{ api.bool_type.variant_type_name }}:

0 commit comments

Comments
 (0)