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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user