mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 16:20:11 -04:00
interval: Fix ability to await Sequence objects
This commit is contained in:
parent
2187ebaaa0
commit
03b96edfbc
@ -51,7 +51,10 @@ __await__(PyObject *self) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
_this->start();
|
||||
// This may be overridden from Python (such as is the case for Sequence), so
|
||||
// we call this via Python.
|
||||
PyObject *result = PyObject_CallMethod(self, "start", nullptr);
|
||||
Py_XDECREF(result);
|
||||
return Dtool_NewGenerator(self, &gen_next);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user