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/gpencil/gpencil_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/gpencil/gpencil_undo.c')
-rw-r--r--source/blender/editors/gpencil/gpencil_undo.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/editors/gpencil/gpencil_undo.c b/source/blender/editors/gpencil/gpencil_undo.c
index 61f7e1bb86f..fa9f5196866 100644
--- a/source/blender/editors/gpencil/gpencil_undo.c
+++ b/source/blender/editors/gpencil/gpencil_undo.c
@@ -25,6 +25,10 @@
* ***** END GPL LICENSE BLOCK *****
*/
+/** \file blender/editors/gpencil/gpencil_undo.c
+ * \ingroup edgpencil
+ */
+
#include <stdlib.h>
#include <string.h>
@@ -34,6 +38,7 @@
#include "DNA_listBase.h"
#include "DNA_windowmanager_types.h"
+#include "BKE_blender.h"
#include "BKE_context.h"
#include "BKE_gpencil.h"
@@ -46,12 +51,10 @@
#include "gpencil_intern.h"
-#define MAXUNDONAME 64
-
typedef struct bGPundonode {
struct bGPundonode *next, *prev;
- char name[MAXUNDONAME];
+ char name[BKE_UNDO_STR_MAX];
struct bGPdata *gpd;
} bGPundonode;