diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-09-10 15:08:40 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-09-10 17:00:24 +0400 |
commit | 3ad902764802b74868d623eea8da460948db2798 (patch) | |
tree | 734f0b8d45f6c2105c0f41b6f105b35b8ced49a3 /source/blender/editors/curve | |
parent | 64e955f52228b573aeffb96d0b74db8eb6931190 (diff) |
Text3D: fixes to selection
- clamp selection on entering editmode (Python may have changed).
- BKE_vfont_select_get no longer succeeds with an empty selection
this caused many operators to go ahead and operate on zero size array.
Diffstat (limited to 'source/blender/editors/curve')
-rw-r--r-- | source/blender/editors/curve/editfont.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/curve/editfont.c b/source/blender/editors/curve/editfont.c index 36e1210402d..d1f628dd0ea 100644 --- a/source/blender/editors/curve/editfont.c +++ b/source/blender/editors/curve/editfont.c @@ -1594,6 +1594,9 @@ void make_editText(Object *obedit) ef->pos = cu->pos; ef->selstart = cu->selstart; ef->selend = cu->selend; + + /* text may have been modified by Python */ + BKE_vfont_select_clamp(obedit); } void load_editText(Object *obedit) |