Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2020-09-30 18:19:12 +0300
committerBrecht Van Lommel <brecht@blender.org>2020-09-30 18:20:29 +0300
commit443e42d47cb2107eb81de7c330b1cef928d6cb74 (patch)
treea07d5b6e5922c0881da57acda98e366b5d975bbb
parent6070f92ab94be7bd1d6729f178d71c71c4245fbb (diff)
Subdivision Surfaces: make uv smooth items consistent with new boundary smooth
This adds an option to smooth UV boundaries including corners, and renames the available options to None / Keep Corners / All. Ref D8413
-rw-r--r--source/blender/makesrna/intern/rna_modifier.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/source/blender/makesrna/intern/rna_modifier.c b/source/blender/makesrna/intern/rna_modifier.c
index a0a8d37fd56..97d6f09d492 100644
--- a/source/blender/makesrna/intern/rna_modifier.c
+++ b/source/blender/makesrna/intern/rna_modifier.c
@@ -1649,15 +1649,11 @@ static PropertyRNA *rna_def_property_subdivision_common(StructRNA *srna, const c
};
static const EnumPropertyItem prop_uv_smooth_items[] = {
- {SUBSURF_UV_SMOOTH_NONE,
- "NONE",
- 0,
- "Sharp",
- "UVs are not smoothed, boundaries are kept sharp"},
+ {SUBSURF_UV_SMOOTH_NONE, "NONE", 0, "None", "UVs are not smoothed, boundaries are kept sharp"},
{SUBSURF_UV_SMOOTH_PRESERVE_CORNERS,
"PRESERVE_CORNERS",
0,
- "Smooth, keep corners",
+ "Keep Corners",
"UVs are smoothed, corners on discontinuous boundary are kept sharp"},
# if 0
{SUBSURF_UV_SMOOTH_PRESERVE_CORNERS_AND_JUNCTIONS,
@@ -1677,12 +1673,8 @@ static PropertyRNA *rna_def_property_subdivision_common(StructRNA *srna, const c
0,
"Smooth, keep corners",
"UVs are smoothed, boundaries are kept sharp"},
- {SUBSURF_UV_SMOOTH_ALL,
- "PRESERVE_BOUNDARIES",
- 0,
- "Smooth all",
- "UVs and boundaries are smoothed"},
# endif
+ {SUBSURF_UV_SMOOTH_ALL, "PRESERVE_BOUNDARIES", 0, "All", "UVs and boundaries are smoothed"},
{0, NULL, 0, NULL, NULL},
};