From 8a7085b9d45b5e364978672ac50cff4e7ee9e269 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 26 Sep 2019 12:01:52 +0200 Subject: Fix T70163: Error painting with Subdivision at end of stack Deformation of subdivision surface modifier was using wrong coordinates for the coarse mesh: as the modifier flow goes the coordinates are to be taken from the input array of coordinates. --- source/blender/blenkernel/intern/multires_reshape.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenkernel/intern/multires_reshape.c') diff --git a/source/blender/blenkernel/intern/multires_reshape.c b/source/blender/blenkernel/intern/multires_reshape.c index 3257bc1b193..4e4a8831518 100644 --- a/source/blender/blenkernel/intern/multires_reshape.c +++ b/source/blender/blenkernel/intern/multires_reshape.c @@ -795,7 +795,7 @@ static Subdiv *multires_create_subdiv_for_reshape(struct Depsgraph *depsgraph, SubdivSettings subdiv_settings; BKE_multires_subdiv_settings_init(&subdiv_settings, mmd); Subdiv *subdiv = BKE_subdiv_new_from_mesh(&subdiv_settings, deformed_mesh); - if (!BKE_subdiv_eval_update_from_mesh(subdiv, deformed_mesh)) { + if (!BKE_subdiv_eval_update_from_mesh(subdiv, deformed_mesh, NULL)) { BKE_subdiv_free(subdiv); return NULL; } -- cgit v1.2.3