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/editors/sculpt_paint/sculpt.c')
-rw-r--r--source/blender/editors/sculpt_paint/sculpt.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index 14cd7b6df2d..53a8c6d678c 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -11267,6 +11267,15 @@ void sculpt_stroke_update_step(bContext *C, struct PaintStroke *stroke, PointerR
BKE_brush_channelset_free(ss->cache->channels_final);
}
+ if (!brush->channels) {
+ // eek!
+ printf("had to create brush->channels for brush '%s'!", brush->id.name + 2);
+
+ brush->channels = BKE_brush_channelset_create();
+ BKE_brush_builtin_patch(brush, brush->sculpt_tool);
+ BKE_brush_channelset_compat_load(brush->channels, brush, true);
+ }
+
if (brush->channels && sd->channels) {
ss->cache->channels_final = BKE_brush_channelset_create();
BKE_brush_channelset_merge(ss->cache->channels_final, brush->channels, sd->channels);