diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2020-03-27 19:24:24 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2020-04-01 10:32:46 +0300 |
commit | 60d3a801db3a848fa82bc4bece08e0d27c7b8ecf (patch) | |
tree | 4379896bc730ea9711d74fefc03cd8026a212a0e /source/blender/blenkernel/intern/subdiv_deform.c | |
parent | 29eb8916587be9bc58418937e86802b3d4eca4a3 (diff) |
Subdiv: Split evaluation begin+refine into separate steps
Actually, begin will do the entire initialization.
Refine will only refine if there is a topology refiner associated
with the Subdiv descriptor.
Allows to refine Subdiv to new coarse positions without touching
displacement evaluation. Will be needed to update SubdivCCG during
sculpt undo.
Diffstat (limited to 'source/blender/blenkernel/intern/subdiv_deform.c')
-rw-r--r-- | source/blender/blenkernel/intern/subdiv_deform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/subdiv_deform.c b/source/blender/blenkernel/intern/subdiv_deform.c index b5fd3ae63eb..db0a51c390b 100644 --- a/source/blender/blenkernel/intern/subdiv_deform.c +++ b/source/blender/blenkernel/intern/subdiv_deform.c @@ -194,7 +194,7 @@ void BKE_subdiv_deform_coarse_vertices(struct Subdiv *subdiv, BKE_subdiv_stats_begin(&subdiv->stats, SUBDIV_STATS_SUBDIV_TO_MESH); /* Make sure evaluator is up to date with possible new topology, and that * is refined for the new positions of coarse vertices. */ - if (!BKE_subdiv_eval_update_from_mesh(subdiv, coarse_mesh, vertex_cos)) { + if (!BKE_subdiv_eval_begin_from_mesh(subdiv, coarse_mesh, vertex_cos)) { /* This could happen in two situations: * - OpenSubdiv is disabled. * - Something totally bad happened, and OpenSubdiv rejected our |