Depsgraph: Allow per-depsgraph debug flags

Currently only affects EVALUATION debug messages, rest are to be
supported on per-depsgraph level.
This commit is contained in:
2018-05-02 11:46:56 +02:00
parent 2f4dea0ef9
commit 65e6654c85
19 changed files with 110 additions and 75 deletions

View File

@@ -50,6 +50,20 @@ extern "C" {
#include "util/deg_util_foreach.h"
void DEG_set_debug_flags(Depsgraph *depsgraph, int flags)
{
DEG::Depsgraph *deg_graph =
reinterpret_cast<DEG::Depsgraph *>(depsgraph);
deg_graph->debug_flags = flags;
}
int DEG_get_debug_flags(const Depsgraph *depsgraph)
{
const DEG::Depsgraph *deg_graph =
reinterpret_cast<const DEG::Depsgraph *>(depsgraph);
return deg_graph->debug_flags;
}
bool DEG_debug_compare(const struct Depsgraph *graph1,
const struct Depsgraph *graph2)
{