diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2018-05-23 16:52:35 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2018-05-23 16:55:13 +0300 |
commit | 4a2213dc9a15d6fbff49cde6f919f27b7fbecf89 (patch) | |
tree | bd2f7093ad3446a454f63c85ba2a800178f6ae01 /source/blender/modifiers/intern/MOD_util.h | |
parent | a455e35343a46af48dc8c8b53356c09368509591 (diff) |
Fix modifiers not using depsgraph time for texture evaluation.
Texture animation seems to be broken anyway currently, but at leat
modifier side it should now be OK.
Diffstat (limited to 'source/blender/modifiers/intern/MOD_util.h')
-rw-r--r-- | source/blender/modifiers/intern/MOD_util.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_util.h b/source/blender/modifiers/intern/MOD_util.h index 4ca13e164fb..0b3452b22b8 100644 --- a/source/blender/modifiers/intern/MOD_util.h +++ b/source/blender/modifiers/intern/MOD_util.h @@ -34,6 +34,7 @@ #include "DEG_depsgraph_build.h" struct DerivedMesh; +struct Depsgraph; struct MDeformVert; struct Mesh; struct ModifierData; @@ -41,7 +42,7 @@ struct Object; struct Scene; struct Tex; -void modifier_init_texture(const struct Scene *scene, struct Tex *texture); +void modifier_init_texture(const struct Depsgraph *depsgraph, struct Tex *texture); void get_texture_coords( struct MappingInfoModifierData *dmd, struct Object *ob, struct DerivedMesh *dm, float (*co)[3], float (*texco)[3], int numVerts); |