diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-06-07 20:15:36 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-06-07 20:16:26 +0300 |
commit | d17094b256a3a5bcd2222b9ae5650c600aa5a7d2 (patch) | |
tree | 2f1739795b728de3e433f1025566a1c9ca820b40 /source/blender/blenkernel/intern | |
parent | 85e28713825fc5d0d3cb6e060e2b851e67b918dd (diff) |
BKE_world_eval: cleanup
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/world.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/world.c b/source/blender/blenkernel/intern/world.c index 15bf01d2049..75965375cbd 100644 --- a/source/blender/blenkernel/intern/world.c +++ b/source/blender/blenkernel/intern/world.c @@ -53,6 +53,8 @@ #include "BKE_node.h" #include "BKE_world.h" +#include "DEG_depsgraph.h" + #include "GPU_material.h" /** Free (or release) any data used by this world (does not free the world itself). */ @@ -161,11 +163,9 @@ void BKE_world_make_local(Main *bmain, World *wrld, const bool lib_local) BKE_id_make_local_generic(bmain, &wrld->id, true, lib_local); } -void BKE_world_eval(struct Depsgraph *UNUSED(depsgraph), World *world) +void BKE_world_eval(struct Depsgraph *depsgraph, World *world) { - if (G.debug & G_DEBUG_DEPSGRAPH_EVAL) { - printf("%s on %s (%p)\n", __func__, world->id.name, world); - } + DEG_debug_print_eval(depsgraph, __func__, world->id.name, world); if (!BLI_listbase_is_empty(&world->gpumaterial)) { world->update_flag = 1; GPU_material_uniform_buffer_tag_dirty(&world->gpumaterial); |