Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_modifier.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 1,626 Lines • ▼ Show 20 Lines | static IDProperty *rna_NodesModifier_properties(PointerRNA *ptr, bool create) | ||||
| } | } | ||||
| return settings->properties; | return settings->properties; | ||||
| } | } | ||||
| #else | #else | ||||
| static void rna_def_property_subdivision_common(StructRNA *srna) | static void rna_def_property_subdivision_common(StructRNA *srna) | ||||
| { | { | ||||
| static const EnumPropertyItem prop_uv_smooth_items[] = { | static const EnumPropertyItem prop_uv_smooth_items[] = { | ||||
| {SUBSURF_UV_SMOOTH_NONE, "NONE", 0, "None", "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, | {SUBSURF_UV_SMOOTH_PRESERVE_CORNERS, | ||||
| "PRESERVE_CORNERS", | "PRESERVE_CORNERS", | ||||
| 0, | 0, | ||||
| "Keep Corners", | "Keep Corners", | ||||
| "UVs are smoothed, corners on discontinuous boundary are kept sharp"}, | "UVs are smoothed, corners on discontinuous boundary are kept sharp"}, | ||||
| # if 0 | |||||
| {SUBSURF_UV_SMOOTH_PRESERVE_CORNERS_AND_JUNCTIONS, | {SUBSURF_UV_SMOOTH_PRESERVE_CORNERS_AND_JUNCTIONS, | ||||
| "PRESERVE_CORNERS_AND_JUNCTIONS", | "PRESERVE_CORNERS_AND_JUNCTIONS", | ||||
| 0, | 0, | ||||
| "Smooth, keep corners+junctions", | "Keep Corners, Junctions", | ||||
| "UVs are smoothed, corners on discontinuous boundary and " | "UVs are smoothed, corners on discontinuous boundary and " | ||||
| "junctions of 3 or more regions are kept sharp"}, | "junctions of 3 or more regions are kept sharp"}, | ||||
| {SUBSURF_UV_SMOOTH_PRESERVE_CORNERS_JUNCTIONS_AND_CONCAVE, | {SUBSURF_UV_SMOOTH_PRESERVE_CORNERS_JUNCTIONS_AND_CONCAVE, | ||||
| "PRESERVE_CORNERS_JUNCTIONS_AND_CONCAVE", | "PRESERVE_CORNERS_JUNCTIONS_AND_CONCAVE", | ||||
| 0, | 0, | ||||
| "Smooth, keep corners+junctions+concave", | "Keep Corners, Junctions, Concave", | ||||
| "UVs are smoothed, corners on discontinuous boundary, " | "UVs are smoothed, corners on discontinuous boundary, " | ||||
| "junctions of 3 or more regions and darts and concave corners are kept sharp"}, | "junctions of 3 or more regions and darts and concave corners are kept sharp"}, | ||||
| {SUBSURF_UV_SMOOTH_PRESERVE_BOUNDARIES, | {SUBSURF_UV_SMOOTH_PRESERVE_BOUNDARIES, | ||||
| "PRESERVE_BOUNDARIES", | "PRESERVE_BOUNDARIES", | ||||
| 0, | 0, | ||||
| "Smooth, keep corners", | "Keep boundaries", | ||||
| "UVs are smoothed, boundaries are kept sharp"}, | "UVs are smoothed, boundaries are kept sharp"}, | ||||
| # endif | {SUBSURF_UV_SMOOTH_ALL, "SMOOTH_ALL", 0, "All", "UVs and boundaries are smoothed"}, | ||||
| {SUBSURF_UV_SMOOTH_ALL, "PRESERVE_BOUNDARIES", 0, "All", "UVs and boundaries are smoothed"}, | |||||
| {0, NULL, 0, NULL, NULL}, | {0, NULL, 0, NULL, NULL}, | ||||
| }; | }; | ||||
| static const EnumPropertyItem prop_boundary_smooth_items[] = { | static const EnumPropertyItem prop_boundary_smooth_items[] = { | ||||
| {SUBSURF_BOUNDARY_SMOOTH_PRESERVE_CORNERS, | {SUBSURF_BOUNDARY_SMOOTH_PRESERVE_CORNERS, | ||||
| "PRESERVE_CORNERS", | "PRESERVE_CORNERS", | ||||
| 0, | 0, | ||||
| "Keep Corners", | "Keep Corners", | ||||
| "Smooth boundaries, but corners are kept sharp"}, | "Smooth boundaries, but corners are kept sharp"}, | ||||
| ▲ Show 20 Lines • Show All 5,680 Lines • Show Last 20 Lines | |||||