code cleanup: use single define for undo string size, was 64 mostly, but 512 in the UI.
[blender-staging.git] / source / blender / editors / sculpt_paint / paint_undo.c
index 8e6c87c151050a82c9c46f73037d7c446fa83270..f5b9aa742c6ac516fee7eb62737cc3b916df467d 100644 (file)
@@ -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"
 
 
 #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);
 }
-