| 94 | } |
| 95 | |
| 96 | bool UPythonDelegate::Tick(float DeltaTime) |
| 97 | { |
| 98 | FScopePythonGIL gil; |
| 99 | PyObject *ret = PyObject_CallFunction(py_callable, (char *)"f", DeltaTime); |
| 100 | if (!ret) { |
| 101 | unreal_engine_py_log_error(); |
| 102 | return false; |
| 103 | } |
| 104 | if (PyObject_IsTrue(ret)) { |
| 105 | Py_DECREF(ret); |
| 106 | return true; |
| 107 | } |
| 108 | Py_DECREF(ret); |
| 109 | return false; |
| 110 | } |
| 111 | |
| 112 | #if WITH_EDITOR |
| 113 | void UPythonDelegate::PyFOnAssetPostImport(UFactory *factory, UObject *u_object) |
nothing calls this directly
no test coverage detected