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
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-09-10 05:55:58 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-09-10 05:55:58 +0400
commit61d40c38e0dd9961223c64c27caf09e8b9c5d488 (patch)
treeb27aecb201f57d74d9283d4a52a56f9f06664555 /source/blender/editors/sculpt_paint
parenteb9a7c21882214229626088a51ab3eed2393a1e0 (diff)
code cleanup: use single define for undo string size, was 64 mostly, but 512 in the UI.
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r--source/blender/editors/sculpt_paint/paint_undo.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_undo.c b/source/blender/editors/sculpt_paint/paint_undo.c
index 8e6c87c1510..f5b9aa742c6 100644
--- a/source/blender/editors/sculpt_paint/paint_undo.c
+++ b/source/blender/editors/sculpt_paint/paint_undo.c
@@ -23,7 +23,6 @@
* \brief Undo system for painting and sculpting.
*/
-
#include <stdlib.h>
#include <string.h>
@@ -35,7 +34,7 @@
#include "DNA_userdef_types.h"
-
+#include "BKE_blender.h"
#include "BKE_context.h"
#include "BKE_global.h"
@@ -43,11 +42,9 @@
#include "paint_intern.h"
-#define MAXUNDONAME 64
-
typedef struct UndoElem {
struct UndoElem *next, *prev;
- char name[MAXUNDONAME];
+ char name[BKE_UNDO_STR_MAX];
uintptr_t undosize;
ListBase elems;
@@ -272,4 +269,3 @@ void ED_undo_paint_free(void)
undo_stack_free(&ImageUndoStack);
undo_stack_free(&MeshUndoStack);
}
-