diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-10-09 05:52:30 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-10-09 05:52:30 +0300 |
commit | 8f210f04758f1c81b757eca0e707f60267de0f19 (patch) | |
tree | 47a71f8e048ca9447e6dcf8ed6153960affcba41 /source | |
parent | 7468227aea78beb053f2dfea34663419974de390 (diff) |
Fix text edit-mode character info initialization
Using EditFont.pos before it was set.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/curve/editfont.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/curve/editfont.c b/source/blender/editors/curve/editfont.c index 603b0967ace..e11807d818f 100644 --- a/source/blender/editors/curve/editfont.c +++ b/source/blender/editors/curve/editfont.c @@ -1876,6 +1876,7 @@ void ED_curve_editfont_make(Object *obedit) memcpy(ef->textbufinfo, cu->strinfo, ef->len * sizeof(CharInfo)); + ef->pos = cu->pos; if (ef->pos > ef->len) { ef->pos = ef->len; } @@ -1883,7 +1884,6 @@ void ED_curve_editfont_make(Object *obedit) cu->curinfo = ef->textbufinfo[ef->pos ? ef->pos - 1 : 0]; /* Other vars */ - ef->pos = cu->pos; ef->selstart = cu->selstart; ef->selend = cu->selend; |