diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-09-26 13:01:52 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-09-26 13:01:52 +0300 |
commit | 8a7085b9d45b5e364978672ac50cff4e7ee9e269 (patch) | |
tree | aa5171df774b117ae420ce9d3c5822577665031e /source/blender/blenkernel/BKE_subdiv_eval.h | |
parent | ee4707544904aa76cfee7f7b5cc16b7e9f4a872c (diff) |
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.
Diffstat (limited to 'source/blender/blenkernel/BKE_subdiv_eval.h')
-rw-r--r-- | source/blender/blenkernel/BKE_subdiv_eval.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_subdiv_eval.h b/source/blender/blenkernel/BKE_subdiv_eval.h index 1d794e4d61a..c8d672c2524 100644 --- a/source/blender/blenkernel/BKE_subdiv_eval.h +++ b/source/blender/blenkernel/BKE_subdiv_eval.h @@ -31,7 +31,12 @@ struct Subdiv; /* Returns true if evaluator is ready for use. */ bool BKE_subdiv_eval_begin(struct Subdiv *subdiv); -bool BKE_subdiv_eval_update_from_mesh(struct Subdiv *subdiv, const struct Mesh *mesh); + +/* coarse_vertex_cos is an optional argument which allows to override coordinates of the coarse + * mesh. */ +bool BKE_subdiv_eval_update_from_mesh(struct Subdiv *subdiv, + const struct Mesh *mesh, + const float (*coarse_vertex_cos)[3]); /* Makes sure displacement evaluator is initialized. * |