Blender Git Commit Log
Git Commits -> Revision 15bc30f
Revision 15bc30f by Campbell Barton (master) January 3, 2014, 06:08 (GMT) |
Text3d: store number of characters and utf8 length separately EditFont's use of Curve.len was very confusing, in editmode it represented the number of characters, in object mode the number of bytes. add Curve.len_wchar and keep track of both. Also don't convert the editmode text into utf8 on every keystroke. Now this is done on exiting editmode or save - to match most other object types. This also fixes curves 'body_format' being reported with an invalid size. |
Commit Details:
Full Hash: 15bc30f4ee49c69f3ed6f92701a0f5cd52d306c5
Parent Commit: a5cb222
Lines Changed: +219, -209
9 Modified Paths:
/source/blender/blenkernel/BKE_blender.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_font.h (+6, -1) (Diff)
/source/blender/blenkernel/intern/curve.c (+3, -3) (Diff)
/source/blender/blenkernel/intern/font.c (+37, -39) (Diff)
/source/blender/blenloader/intern/versioning_260.c (+10, -0) (Diff)
/source/blender/blenloader/intern/writefile.c (+2, -6) (Diff)
/source/blender/editors/curve/editfont.c (+138, -146) (Diff)
/source/blender/makesdna/DNA_curve_types.h (+11, -3) (Diff)
/source/blender/makesrna/intern/rna_curve.c (+11, -10) (Diff)
/source/blender/blenkernel/BKE_font.h (+6, -1) (Diff)
/source/blender/blenkernel/intern/curve.c (+3, -3) (Diff)
/source/blender/blenkernel/intern/font.c (+37, -39) (Diff)
/source/blender/blenloader/intern/versioning_260.c (+10, -0) (Diff)
/source/blender/blenloader/intern/writefile.c (+2, -6) (Diff)
/source/blender/editors/curve/editfont.c (+138, -146) (Diff)
/source/blender/makesdna/DNA_curve_types.h (+11, -3) (Diff)
/source/blender/makesrna/intern/rna_curve.c (+11, -10) (Diff)