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:
authorCampbell Barton <ideasman42@gmail.com>2013-07-09 10:21:45 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-07-09 10:21:45 +0400
commitd4ff53b760f51d791860b25385f2f9716740d586 (patch)
tree6849d8fe81f9352b10d3e113d64e5057040cf7ea /source/blender/makesdna
parent750b30c7dda4b46eb41f0ad611bae0a739b34610 (diff)
fix [#36066] crash when Tab out text object
the way Curve.len is used at the moment is really stupid, calculate string size on save for now, but should really store the length in bytes and total number of characters.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_curve_types.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_curve_types.h b/source/blender/makesdna/DNA_curve_types.h
index deb9902c35d..964fa11b0a2 100644
--- a/source/blender/makesdna/DNA_curve_types.h
+++ b/source/blender/makesdna/DNA_curve_types.h
@@ -215,6 +215,10 @@ typedef struct Curve {
void *lastsel;
/* font part */
+ /* WARNING: cu->len is...
+ * - strlen(cu->str) object-mode (bytes).
+ * - BLI_strlen_utf8(cu->str) in edit-mode.
+ * This should be cleaned up and some point, see 'write_curves' - campbell */
short len, lines, pos, spacemode;
float spacing, linedist, shear, fsize, wordspace, ulpos, ulheight;
float xof, yof;