diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2009-08-17 08:40:59 +0400 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2009-08-17 08:40:59 +0400 |
commit | a3b317daf7fbaa2359afbfdf0524b590d3622f2e (patch) | |
tree | af7876365655c372b4a7a3e16c41fde9b725d3ad /source/blender/blenkernel/intern/paint.c | |
parent | 3425925a7702c0a5527c60b2da044dad378d7f2c (diff) |
2.5 Texture paint:
* Converted to use Paint struct. Now all the brush modes are done.
TODO:
* Make the UI better
Diffstat (limited to 'source/blender/blenkernel/intern/paint.c')
-rw-r--r-- | source/blender/blenkernel/intern/paint.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/paint.c b/source/blender/blenkernel/intern/paint.c index 8e774e4c85a..5ae84118356 100644 --- a/source/blender/blenkernel/intern/paint.c +++ b/source/blender/blenkernel/intern/paint.c @@ -158,6 +158,10 @@ void free_paint(Paint *paint) void copy_paint(Paint *orig, Paint *new) { - if(orig->brushes) + if(orig->brushes) { + int i; new->brushes = MEM_dupallocN(orig->brushes); + for(i = 0; i < orig->brush_count; ++i) + id_us_plus((ID *)new->brushes[i]); + } } |