diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-08-13 16:39:01 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-08-13 17:04:06 +0300 |
commit | 5c61be777f10f65fce0184d43804c2d01cb284ad (patch) | |
tree | d69200bc4367b55dea18b9ee4a0b0b774c265933 /source/blender/makesdna | |
parent | aac5458fa5800cc6c0a7243c1baa13d8190fa4b0 (diff) |
Subsurf: Introduce quality option
For users it defines how accurate vertex positions are in terms
of limit surface (as in, how close the vertices locations to the
condition when they are calculated for an infinitely subdivided
mesh).
This affects things like:
- Irregular vertices (joint of 3 or more edges)
- Crease
Keep quality value low for performance.
NOTE: Going higher does not necessarily mean real improvement
in quality, ideal case might be reached well before maximum
quality of 10. Quality of 3 is a good starting point.
Internally quality is translated directly to adaptive subdivision
level.
Reviewers: brecht
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D3599
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_modifier_types.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_modifier_types.h b/source/blender/makesdna/DNA_modifier_types.h index 87e632defe1..404e8d2d137 100644 --- a/source/blender/makesdna/DNA_modifier_types.h +++ b/source/blender/makesdna/DNA_modifier_types.h @@ -162,7 +162,8 @@ typedef struct SubsurfModifierData { short subdivType, levels, renderLevels, flags; short uv_smooth; - short pad[3]; + short quality; + short pad[2]; void *emCache, *mCache; } SubsurfModifierData; |