mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Fix exception fetching and passing through signals
This commit is contained in:
@@ -133,7 +133,7 @@ static PyMethodDef OutputRedirector_methods[] = {
|
||||
|
||||
PyObject *PythonContext::main_dict = NULL;
|
||||
|
||||
void FetchException(QString &typeStr, QString &valueStr, QList<QString> frames)
|
||||
void FetchException(QString &typeStr, QString &valueStr, QList<QString> &frames)
|
||||
{
|
||||
PyObject *exObj = NULL, *valueObj = NULL, *tracebackObj = NULL;
|
||||
|
||||
@@ -200,6 +200,9 @@ void PythonContext::GlobalInit()
|
||||
return;
|
||||
}
|
||||
|
||||
// for the exception signal
|
||||
qRegisterMetaType<QList<QString>>("QList<QString>");
|
||||
|
||||
PyImport_AppendInittab("_renderdoc", &PyInit__renderdoc);
|
||||
PyImport_AppendInittab("_qrenderdoc", &PyInit__qrenderdoc);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user