[Bf-blender-cvs] [4f14f1d927c] temp-render-depsgraph: Use lean/shallow EvaluationContext for point density texture
Dalai Felinto
noreply at git.blender.org
Mon Feb 26 22:35:00 CET 2018
Commit: 4f14f1d927c7e001477a67b39854ac313ad8a333
Author: Dalai Felinto
Date: Mon Feb 26 18:34:03 2018 -0300
Branches: temp-render-depsgraph
https://developer.blender.org/rB4f14f1d927c7e001477a67b39854ac313ad8a333
Use lean/shallow EvaluationContext for point density texture
I'm confident this is not working, but I want to check with others how to test
this and if we need a full EvaluationContext with depsgraph for this.
===================================================================
M source/blender/render/intern/source/render_texture.c
===================================================================
diff --git a/source/blender/render/intern/source/render_texture.c b/source/blender/render/intern/source/render_texture.c
index f1bd09e4af1..b99d7a8bce6 100644
--- a/source/blender/render/intern/source/render_texture.c
+++ b/source/blender/render/intern/source/render_texture.c
@@ -3816,13 +3816,17 @@ Material *RE_sample_material_init(Material *orig_mat, Scene *scene)
if (tex->type==TEX_POINTDENSITY) {
/* set dummy values for render and do cache */
Render dummy_re = {NULL};
- //TODO DFELINTO brb dfelinto DONT COMMIT WITH THIS //
+ EvaluationContext eval_ctx = {
+ .object_mode = OB_MODE_OBJECT
+ };
+ DEG_evaluation_context_init(&eval_ctx, DAG_EVAL_RENDER);
+
dummy_re.scene = scene;
unit_m4(dummy_re.viewinv);
unit_m4(dummy_re.viewmat);
unit_m4(dummy_re.winmat);
dummy_re.winx = dummy_re.winy = 128;
- cache_pointdensity(NULL, &dummy_re, tex->pd);
+ cache_pointdensity(&eval_ctx, &dummy_re, tex->pd);
}
/* update image sequences and movies */
More information about the Bf-blender-cvs
mailing list