Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorPablo Dobarro <pablodp606@gmail.com>2020-06-05 22:42:30 +0300
committerPablo Dobarro <pablodp606@gmail.com>2020-06-09 19:27:18 +0300
commit69b67d4f07206566e979ef7645d5d1c76b9cc6b4 (patch)
treef0159bbf033009d0af245a5a1bd50e91f9b2be4b /source
parent53d1a729cc1f3d162b22954111612c691db9f14c (diff)
Fix Edit Voxel Size label in preview
The format string was wrong so it was rendering an extra % character Reviewed By: sergey Differential Revision: https://developer.blender.org/D7942
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/object/object_remesh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_remesh.c b/source/blender/editors/object/object_remesh.c
index 846db6728f9..71f0230237d 100644
--- a/source/blender/editors/object/object_remesh.c
+++ b/source/blender/editors/object/object_remesh.c
@@ -338,7 +338,7 @@ static void voxel_size_edit_draw(const bContext *UNUSED(C), ARegion *UNUSED(ar),
char str[VOXEL_SIZE_EDIT_MAX_STR_LEN];
short strdrawlen = 0;
- BLI_snprintf(str, VOXEL_SIZE_EDIT_MAX_STR_LEN, "%3.4f%%", cd->voxel_size);
+ BLI_snprintf(str, VOXEL_SIZE_EDIT_MAX_STR_LEN, "%.4f", cd->voxel_size);
strdrawlen = BLI_strlen_utf8(str);
immUnbindProgram();