Cycles: expose direct light sampling option in Debug panel, tweak panel layout

This commit is contained in:
2021-11-25 14:32:53 +01:00
parent e3d3296327
commit 466b50dbc9
4 changed files with 23 additions and 11 deletions

View File

@@ -1054,5 +1054,13 @@ void *CCL_python_module_init()
Py_INCREF(Py_False);
}
#ifdef WITH_CYCLES_DEBUG
PyModule_AddObject(mod, "with_debug", Py_True);
Py_INCREF(Py_True);
#else /* WITH_CYCLES_DEBUG */
PyModule_AddObject(mod, "with_debug", Py_False);
Py_INCREF(Py_False);
#endif /* WITH_CYCLES_DEBUG */
return (void *)mod;
}