mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -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;
|
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);
|
return Dtool_NewGenerator(self, &gen_next);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user