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:
Diffstat (limited to 'source/blender/makesdna/DNA_sculpt_brush_types.h')
-rw-r--r--source/blender/makesdna/DNA_sculpt_brush_types.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/source/blender/makesdna/DNA_sculpt_brush_types.h b/source/blender/makesdna/DNA_sculpt_brush_types.h
index 4e219805e59..22337ac37e5 100644
--- a/source/blender/makesdna/DNA_sculpt_brush_types.h
+++ b/source/blender/makesdna/DNA_sculpt_brush_types.h
@@ -25,6 +25,9 @@
#pragma once
#include "DNA_color_types.h"
+#include "DNA_listBase.h"
+
+struct GHash;
typedef struct BrushMapping {
char name[64];
@@ -36,6 +39,8 @@ typedef struct BrushMapping {
} BrushMapping;
typedef struct BrushChannel {
+ struct BrushChannel *next, *prev;
+
char idname[64];
char name[64];
@@ -49,13 +54,13 @@ typedef struct BrushChannel {
} BrushChannel;
typedef struct BrushChannelSet {
- BrushChannel *channels;
- /*cannot add channels within the UI loop. Since it's
- hard to avoid it they're put here.*/
- BrushChannel *queued_channels;
- int totchannel, tot_queued_channel;
+ ListBase channels;
+ int totchannel, _pad[1];
+ struct GHash *namemap;
} BrushChannelSet;
+#define BRUSH_CHANNEL_MAX_IDNAME sizeof(((BrushChannel){0}).idname)
+
// mapping flags
enum {
BRUSH_MAPPING_ENABLED = 1 << 0,