diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2009-02-22 22:31:25 +0300 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2009-02-22 22:31:25 +0300 |
commit | 674aae36b6fadf97613cc11758c32503b0f5f2f4 (patch) | |
tree | aa9d55871c01e52cc6f623c1320bc4c955f6feac /source/blender/blenloader | |
parent | 7c8d98acb83f0568b3db9c700f456d829d509cc3 (diff) |
* Added radial control for texture paint (in both view3d and image)
* bugfix: for older files, initialize the brush curve on file load
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 023d7c09171..104c058984b 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -109,6 +109,7 @@ #include "BKE_animsys.h" #include "BKE_action.h" #include "BKE_armature.h" +#include "BKE_brush.h" #include "BKE_cdderivedmesh.h" #include "BKE_cloth.h" #include "BKE_colortools.h" @@ -1511,6 +1512,8 @@ static void direct_link_brush(FileData *fd, Brush *brush) brush->curve= newdataadr(fd, brush->curve); if(brush->curve) direct_link_curvemapping(fd, brush->curve); + else + brush_curve_preset(brush, BRUSH_PRESET_SHARP); } static void direct_link_script(FileData *fd, Script *script) |