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.
Py_INCREF
__godot_extension_create_instance
1 parent b97b635 commit 879f044Copy full SHA for 879f044
scripts/gdextension_cython_preprocessor.py
@@ -111,6 +111,7 @@ def __cinit__(self):
111
cdef GDExtensionObjectPtr __godot_extension_create_instance(void* p_class_userdata) noexcept with gil:
112
# print("[DEBUG] {spec.class_name}.__godot_extension_create_instance()")
113
cdef {spec.class_name} obj = {spec.class_name}()
114
+ # Note `Py_INCREF(obj)` has already been done during `__cinit__`
115
return obj._gd_ptr
116
117
@staticmethod
0 commit comments