Curves: change default fill mode to full, increase bevel resolution.

Ref D4438.
This commit is contained in:
Alex Strand 2019-03-13 15:03:07 +01:00 committed by Brecht Van Lommel
parent 76437b903d
commit bc5b0f7a09
Notes: blender-bot 2023-02-14 03:15:40 +01:00
Referenced by commit 7bfd3130fb, Fix T62866: 3D text not filled by default
Referenced by issue #62883, Import SVG file remove fill color
1 changed files with 2 additions and 1 deletions

View File

@ -141,7 +141,7 @@ void BKE_curve_init(Curve *cu)
/* BLI_assert(MEMCMP_STRUCT_AFTER_IS_ZERO(cu, id)); */ /* cu->type is already initialized... */
copy_v3_fl(cu->size, 1.0f);
cu->flag = CU_FRONT | CU_BACK | CU_DEFORM_BOUNDS_OFF | CU_PATH_RADIUS;
cu->flag = CU_DEFORM_BOUNDS_OFF | CU_PATH_RADIUS;
cu->pathlen = 100;
cu->resolu = cu->resolv = (cu->type == OB_SURF) ? 4 : 12;
cu->width = 1.0;
@ -157,6 +157,7 @@ void BKE_curve_init(Curve *cu)
cu->bevfac2 = 1.0f;
cu->bevfac1_mapping = CU_BEVFAC_MAP_RESOLU;
cu->bevfac2_mapping = CU_BEVFAC_MAP_RESOLU;
cu->bevresol = 4;
cu->bb = BKE_boundbox_alloc_unit();