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:
authorMatt Ebb <matt@mke3.net>2010-01-22 07:21:46 +0300
committerMatt Ebb <matt@mke3.net>2010-01-22 07:21:46 +0300
commit96b5658d0cd33b02cb6668670b7706b8897c0460 (patch)
tree2f1ae90734eb57b9001238418a549c3b418d75ae /source/blender/blenkernel/intern/brush.c
parent0db45111ce9c504894e0a88dae5f78c03196d233 (diff)
Fix [#20756] Texture painting on 3D tends to forget textures in the new texture menu.
Part of this fix (loading files with brushes/textures) will only apply for new files saved after this commit
Diffstat (limited to 'source/blender/blenkernel/intern/brush.c')
-rw-r--r--source/blender/blenkernel/intern/brush.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/brush.c b/source/blender/blenkernel/intern/brush.c
index 99cd6975665..e915784e741 100644
--- a/source/blender/blenkernel/intern/brush.c
+++ b/source/blender/blenkernel/intern/brush.c
@@ -89,6 +89,8 @@ Brush *add_brush(const char *name)
brush->flag |= BRUSH_SPACE;
brush_curve_preset(brush, CURVE_PRESET_SMOOTH);
+
+ default_mtex(&brush->mtex);
/* enable fake user by default */
brush->id.flag |= LIB_FAKEUSER;