diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2018-05-23 17:36:44 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2018-05-23 17:37:36 +0300 |
commit | 0cc2666605d84cc43e8be5d4b3f65f903346f205 (patch) | |
tree | 25769500efadc3dbb62803640720a3e60970e502 /source/blender/modifiers/intern/MOD_softbody.c | |
parent | 9cb2b9b523ec73b8fab2d0d7785576e3ae9fb9f2 (diff) |
Fix last usages of Scene.r.cfra in modifiers code.
Note that some modifiers-related code in BKE still uses that...
Diffstat (limited to 'source/blender/modifiers/intern/MOD_softbody.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_softbody.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_softbody.c b/source/blender/modifiers/intern/MOD_softbody.c index a62b21df231..c16a56ee3d1 100644 --- a/source/blender/modifiers/intern/MOD_softbody.c +++ b/source/blender/modifiers/intern/MOD_softbody.c @@ -46,6 +46,7 @@ #include "DEG_depsgraph.h" #include "DEG_depsgraph_build.h" +#include "DEG_depsgraph_query.h".h" #include "MOD_modifiertypes.h" @@ -55,7 +56,7 @@ static void deformVerts( float (*vertexCos)[3], int numVerts) { - sbObjectStep(ctx->depsgraph, md->scene, ctx->object, (float)md->scene->r.cfra, vertexCos, numVerts); + sbObjectStep(ctx->depsgraph, md->scene, ctx->object, DEG_get_ctime(ctx->depsgraph), vertexCos, numVerts); } static bool dependsOnTime(ModifierData *UNUSED(md)) |