diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2021-08-25 19:01:19 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2021-08-25 19:01:41 +0300 |
commit | 05564c8ca61d8fb3c2df32cd4ec60a540a13e4a6 (patch) | |
tree | a174ab75be464c73c6b5b22c8da3c8a3e382c272 /source | |
parent | 8fb91555988d48b6b9d546b0654d5c6274fa1134 (diff) |
Fix wrong length value in the header of the Move operator
Missed in {rB0d36439f95c0}.
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) { |