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/util/editmode_undo.c
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/util/editmode_undo.c')
-rw-r--r--source/blender/editors/util/editmode_undo.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/source/blender/editors/util/editmode_undo.c b/source/blender/editors/util/editmode_undo.c
index 18610d57bbd..9a3b0476205 100644
--- a/source/blender/editors/util/editmode_undo.c
+++ b/source/blender/editors/util/editmode_undo.c
@@ -29,8 +29,6 @@
* \ingroup edutil
*/
-
-
#include <stdlib.h>
#include <string.h>
#include <math.h>
@@ -44,7 +42,7 @@
#include "BLI_dynstr.h"
#include "BLI_utildefines.h"
-
+#include "BKE_blender.h"
#include "BKE_context.h"
#include "BKE_depsgraph.h"
#include "BKE_global.h"
@@ -82,8 +80,6 @@
static void error(const char *UNUSED(arg)) {}
/* ****** XXX ***** */
-
-#define MAXUNDONAME 64
typedef struct UndoElem {
struct UndoElem *next, *prev;
ID id; // copy of editmode object ID
@@ -91,7 +87,7 @@ typedef struct UndoElem {
int type; // type of edited object
void *undodata;
uintptr_t undosize;
- char name[MAXUNDONAME];
+ char name[BKE_UNDO_STR_MAX];
void * (*getdata)(bContext * C);
void (*freedata)(void *);
void (*to_editmode)(void *, void *, void *);