diff options
Diffstat (limited to 'source/blender/blenloader/intern/writefile.c')
-rw-r--r-- | source/blender/blenloader/intern/writefile.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c index e3a67da94c3..7c0e81169f7 100644 --- a/source/blender/blenloader/intern/writefile.c +++ b/source/blender/blenloader/intern/writefile.c @@ -1596,10 +1596,16 @@ static void write_nodetrees(WriteData *wd, ListBase *idbase) static void write_brushes(WriteData *wd, ListBase *idbase) { Brush *brush; + int a; - for(brush=idbase->first; brush; brush= brush->id.next) - if (brush->id.us>0 || wd->current) + for(brush=idbase->first; brush; brush= brush->id.next) { + if(brush->id.us>0 || wd->current) { writestruct(wd, ID_BR, "Brush", 1, brush); + for(a=0; a<MAX_MTEX; a++) + if(brush->mtex[a]) + writestruct(wd, DATA, "MTex", 1, brush->mtex[a]); + } + } } static void write_global(WriteData *wd) |