Collision Modifier: get time from depsgraph instead of scene
This commit is contained in:
@@ -122,7 +122,7 @@ static void deformVerts(
|
|||||||
CDDM_apply_vert_coords(dm, vertexCos);
|
CDDM_apply_vert_coords(dm, vertexCos);
|
||||||
CDDM_calc_normals(dm);
|
CDDM_calc_normals(dm);
|
||||||
|
|
||||||
current_time = BKE_scene_frame_get(md->scene);
|
current_time = DEG_get_ctime(ctx->depsgraph);
|
||||||
|
|
||||||
if (G.debug_value > 0)
|
if (G.debug_value > 0)
|
||||||
printf("current_time %f, collmd->time_xnew %f\n", current_time, collmd->time_xnew);
|
printf("current_time %f, collmd->time_xnew %f\n", current_time, collmd->time_xnew);
|
||||||
|
|||||||
Reference in New Issue
Block a user