diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/transform/transform_mode_translate.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform_mode_translate.c b/source/blender/editors/transform/transform_mode_translate.c index 84c036387a7..82574cffb82 100644 --- a/source/blender/editors/transform/transform_mode_translate.c +++ b/source/blender/editors/transform/transform_mode_translate.c @@ -243,6 +243,9 @@ static void headerTranslation(TransInfo *t, const float vec[3], char str[UI_MAX_ if (t->con.mode & CON_AXIS2) { dvec[i++] = dvec[2]; } + while (i != 3) { + dvec[i++] = 0.0f; + } } if (t->flag & T_2D_EDIT) { |