[Bf-blender-cvs] [d17094b256a] blender2.8: BKE_world_eval: cleanup
Dalai Felinto
noreply at git.blender.org
Thu Jun 7 19:16:49 CEST 2018
Commit: d17094b256a3a5bcd2222b9ae5650c600aa5a7d2
Author: Dalai Felinto
Date: Thu Jun 7 19:15:36 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBd17094b256a3a5bcd2222b9ae5650c600aa5a7d2
BKE_world_eval: cleanup
===================================================================
M source/blender/blenkernel/intern/world.c
===================================================================
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);
More information about the Bf-blender-cvs
mailing list