diff options
author | Joseph Eagar <joeedh@gmail.com> | 2021-09-18 00:43:00 +0300 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2021-09-18 00:43:00 +0300 |
commit | d3bba94bf243c82b0c94b176f0541511e29bbcf3 (patch) | |
tree | 75b2e53629b732aafad63104209650ebb912e45d /source/blender/blenkernel/intern/brush.c | |
parent | 04c3690299c51b79412fe395c2507a28fbae7b56 (diff) |
Commit current working copy; having
weird file system issues
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; |