diff options
author | Brecht Van Lommel <brecht@blender.org> | 2021-07-28 19:27:25 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2021-07-28 20:27:57 +0300 |
commit | 073bf8bf52edbb6f53fb6bbbecc26f20b91e8c43 (patch) | |
tree | 109ca52ccec690c7a639ea70ac00f68d3ee9fae8 /intern/cycles/blender/blender_python.cpp | |
parent | 3bf96758496973c1bcf2226324552ee1b9bf95f3 (diff) |
Cycles: remove WITH_CYCLES_DEBUG, add WITH_CYCLES_DEBUG_NAN
WITH_CYCLES_DEBUG was used for rendering BVH debugging passes. But since we
mainly use Embree an OptiX now, this information is no longer important.
WITH_CYCLES_DEBUG_NAN will enable additional checks for NaNs and invalid values
in the kernel, for Cycles developers. Previously these asserts where enabled in
all debug builds, but this is too likely to crash Blender in scenes that render
fine regardless of the NaNs. So this is behind a CMake option now.
Fixes T90240
Diffstat (limited to 'intern/cycles/blender/blender_python.cpp')
-rw-r--r-- | intern/cycles/blender/blender_python.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/intern/cycles/blender/blender_python.cpp b/intern/cycles/blender/blender_python.cpp index c58d2eb6e04..fd145effde7 100644 --- a/intern/cycles/blender/blender_python.cpp +++ b/intern/cycles/blender/blender_python.cpp @@ -1098,14 +1098,6 @@ void *CCL_python_module_init() PyModule_AddStringConstant(mod, "osl_version_string", "unknown"); #endif -#ifdef WITH_CYCLES_DEBUG - PyModule_AddObject(mod, "with_cycles_debug", Py_True); - Py_INCREF(Py_True); -#else - PyModule_AddObject(mod, "with_cycles_debug", Py_False); - Py_INCREF(Py_False); -#endif - #ifdef WITH_NETWORK PyModule_AddObject(mod, "with_network", Py_True); Py_INCREF(Py_True); |