[Bf-blender-cvs] [58e58310b79] master: Cleanup: compiler warning for invalid argument type

Campbell Barton noreply at git.blender.org
Wed Jun 23 05:57:56 CEST 2021


Commit: 58e58310b79861ff53c46a8717b85b5b04c37fe5
Author: Campbell Barton
Date:   Wed Jun 23 11:44:02 2021 +1000
Branches: master
https://developer.blender.org/rB58e58310b79861ff53c46a8717b85b5b04c37fe5

Cleanup: compiler warning for invalid argument type

===================================================================

M	source/blender/editors/transform/transform_mode_translate.c

===================================================================

diff --git a/source/blender/editors/transform/transform_mode_translate.c b/source/blender/editors/transform/transform_mode_translate.c
index ecb31073f3f..0e734b3b74b 100644
--- a/source/blender/editors/transform/transform_mode_translate.c
+++ b/source/blender/editors/transform/transform_mode_translate.c
@@ -72,7 +72,6 @@ static void headerTranslation(TransInfo *t, const float vec[3], char str[UI_MAX_
   size_t ofs = 0;
   char dvec_str[3][NUM_STR_REP_LEN];
   char dist_str[NUM_STR_REP_LEN];
-  char autoik_str[NUM_STR_REP_LEN];
   float dist;
 
   UnitSettings *unit = NULL;
@@ -81,7 +80,7 @@ static void headerTranslation(TransInfo *t, const float vec[3], char str[UI_MAX_
   }
 
   if (hasNumInput(&t->num)) {
-    outputNumInput(&(t->num), dvec_str, &t->scene->unit);
+    outputNumInput(&(t->num), dvec_str[0], &t->scene->unit);
     dist = len_v3(t->num.val);
   }
   else {



More information about the Bf-blender-cvs mailing list