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:
authorJacques Lucke <jacques@blender.org>2020-11-06 15:16:17 +0300
committerJacques Lucke <jacques@blender.org>2020-11-06 15:16:17 +0300
commit9ad2965921f064250830a8647de3dce68bcb2e4d (patch)
treedcfec730e0e71fc72e1852162a70aecee2145007 /source/blender/blenloader/intern/writefile.c
parente810a16d75d346646720814740f8e2a241f4bd8b (diff)
Refactor: move Paint .blend I/O to blenkernel
Ref T76372.
Diffstat (limited to 'source/blender/blenloader/intern/writefile.c')
-rw-r--r--source/blender/blenloader/intern/writefile.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c
index 9bf4c6526f4..5aa5679650a 100644
--- a/source/blender/blenloader/intern/writefile.c
+++ b/source/blender/blenloader/intern/writefile.c
@@ -153,6 +153,7 @@
#include "BKE_node.h"
#include "BKE_object.h"
#include "BKE_packedFile.h"
+#include "BKE_paint.h"
#include "BKE_pointcache.h"
#include "BKE_report.h"
#include "BKE_screen.h"
@@ -1323,10 +1324,7 @@ static void write_view_settings(BlendWriter *writer, ColorManagedViewSettings *v
static void write_paint(BlendWriter *writer, Paint *p)
{
- if (p->cavity_curve) {
- BKE_curvemapping_blend_write(writer, p->cavity_curve);
- }
- BLO_write_struct_array(writer, PaintToolSlot, p->tool_slots_len, p->tool_slots);
+ BKE_paint_blend_write(writer, p);
}
static void write_layer_collections(BlendWriter *writer, ListBase *lb)