diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-09-18 15:23:35 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-09-18 15:48:27 +0300 |
commit | 41c039d6e90d7182042ec5f22386b8cf941c187f (patch) | |
tree | 8c4b6aab045414398feb8e2365a16eedd5320151 /source/blender/blenkernel/BKE_subdiv_ccg.h | |
parent | b6ff37ee67bd0d364c737090c3f0d9dee9dda8d1 (diff) |
Subdiv: CCG, evaluate final position for multires
This makes it so coordinates and normals for CCG are calculated
with mutires displacement taken into account. This solves issues
with multires displacement being lost when entering sculpt mode.
The missing part is averaging of normals along grid boundaries.
But even then sculpting shows decent results.
The plan to solve that would be to introduce function to stitch
grids, which can also be used by Smooth brush which requires
this.
Diffstat (limited to 'source/blender/blenkernel/BKE_subdiv_ccg.h')
-rw-r--r-- | source/blender/blenkernel/BKE_subdiv_ccg.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_subdiv_ccg.h b/source/blender/blenkernel/BKE_subdiv_ccg.h index c760fb04fd3..ed5ef0e19f5 100644 --- a/source/blender/blenkernel/BKE_subdiv_ccg.h +++ b/source/blender/blenkernel/BKE_subdiv_ccg.h @@ -158,4 +158,7 @@ void BKE_subdiv_ccg_key( void BKE_subdiv_ccg_key_top_level( struct CCGKey *key, const SubdivCCG *subdiv_ccg); +/* Recalculate all normals based on grid element coordinates. */ +void BKE_subdiv_ccg_recalc_normals(SubdivCCG *subdiv_ccg); + #endif /* __BKE_SUBDIV_CCG_H__ */ |