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.
BaseGDObject::cast_from_variant
1 parent f748e85 commit 7941e5cCopy full SHA for 7941e5c
src/godot/classes.pxd.j2
@@ -13,8 +13,11 @@ cdef class BaseGDObject:
13
ret._gd_ptr = obj
14
return ret #}
15
16
+ # TODO: In theory we should pass a `const gd_variant_t *gdvar` since the variant
17
+ # is not modified, however `GDExtensionTypeFromVariantConstructorFunc` doesn't
18
+ # specified a const to the variant parameter...
19
@staticmethod
- cdef inline object cast_from_variant(const gd_variant_t *gdvar):
20
+ cdef inline object cast_from_variant(gd_variant_t *gdvar):
21
cdef gd_object_t obj = gdapi.gd_object_from_variant(gdvar)
22
if obj == NULL:
23
return None
0 commit comments