Depsgraph: Add evaluation callbacks for granular nodes update
[blender-staging.git] / source / blender / blenkernel / intern / particle_system.c
index 4bc46a476a518d3c04a07128c8f0181dba78f4f7..3a19ca7304ccdfffd1875f70cc2ace3e7e592897 100644 (file)
@@ -90,6 +90,7 @@
 #include "BKE_modifier.h"
 #include "BKE_scene.h"
 #include "BKE_bvhutils.h"
+#include "BKE_depsgraph.h"
 
 #include "PIL_time.h"
 
@@ -4209,3 +4210,13 @@ void particle_system_update(Scene *scene, Object *ob, ParticleSystem *psys)
                invert_m4_m4(psys->imat, ob->obmat);
 }
 
+/* **** Depsgraph evaluation **** */
+
+void BKE_particle_system_eval(EvaluationContext *UNUSED(eval_ctx),
+                              Object *ob,
+                              ParticleSystem *psys)
+{
+       if (G.debug & G_DEBUG_DEPSGRAPH) {
+               printf("%s on %s:%s\n", __func__, ob->id.name, psys->name);
+       }
+}