diff options
Diffstat (limited to 'source/blender/blenkernel/intern/brush.c')
-rw-r--r-- | source/blender/blenkernel/intern/brush.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/brush.c b/source/blender/blenkernel/intern/brush.c index 552708722ad..78fc0b54f5f 100644 --- a/source/blender/blenkernel/intern/brush.c +++ b/source/blender/blenkernel/intern/brush.c @@ -269,7 +269,7 @@ static void brush_blend_write(BlendWriter *writer, ID *id, const void *id_addres } } -static void brush_blend_read_data(BlendDataReader *reader, ID *id) +ATTR_NO_OPT static void brush_blend_read_data(BlendDataReader *reader, ID *id) { Brush *brush = (Brush *)id; @@ -277,6 +277,9 @@ static void brush_blend_read_data(BlendDataReader *reader, ID *id) BLO_read_data_address(reader, &brush->channels); BKE_brush_channelset_read(reader, brush->channels); } + else { + BKE_brush_builtin_create(brush, brush->sculpt_tool); + } if (brush->dyntopo.radius_scale == 0.0f) { brush->dyntopo.radius_scale = 1.0f; |