Fix [#22965] Icons for new brushes won't get sticky
authorJason Wilkins <Jason.A.Wilkins@gmail.com>
Sat, 24 Jul 2010 05:53:30 +0000 (05:53 +0000)
committerJason Wilkins <Jason.A.Wilkins@gmail.com>
Sat, 24 Jul 2010 05:53:30 +0000 (05:53 +0000)
Somehow the code I submitted to fix this problem was commented out.  I think I just submitted the wrong code.

source/blender/blenkernel/intern/brush.c

index 8670665..1536c39 100644 (file)
@@ -132,7 +132,7 @@ Brush *copy_brush(Brush *brush)
        if (brush->mtex.tex)
                id_us_plus((ID*)brush->mtex.tex);
 
-       //brushn->preview= NULL;
+       brushn->preview= NULL;
 
        if (brush->icon_imbuf)
                brushn->icon_imbuf= IMB_dupImBuf(brush->icon_imbuf);