Curves: change default font offset from 1.0 to 0.0 #105182

Merged
Hans Goudey merged 1 commits from pioverfour/blender:dp_default_font_offset into main 2023-03-06 14:31:07 +01:00
2 changed files with 4 additions and 1 deletions

View File

@ -409,6 +409,9 @@ void BKE_curve_init(Curve *cu, const short curve_type)
cu->resolv = 4;
}
cu->bevel_profile = nullptr;
/* Initialize the offset to 1.0, to compensate for it being set to -1.0
in the property getter. */
cu->offset = 1.0f;
pioverfour marked this conversation as resolved
Review

1.0 -> 1.0f

`1.0` -> `1.0f`
}
Curve *BKE_curve_add(Main *bmain, const char *name, int type)

View File

@ -20,7 +20,7 @@
.pathlen = 100, \
.resolu = 12, \
.resolv = 12, \
.offset = 1.0, \
.offset = 0.0, \
.wordspace = 1.0, \
.spacing = 1.0f, \
.linedist = 1.0, \