diff --git a/source/blender/blenkernel/intern/paint.cc b/source/blender/blenkernel/intern/paint.cc index 95ee482eb1d..3207b198db1 100644 --- a/source/blender/blenkernel/intern/paint.cc +++ b/source/blender/blenkernel/intern/paint.cc @@ -1911,9 +1911,11 @@ void BKE_paint_copy(const Paint *src, Paint *dst, const int flag) } dst->runtime = MEM_new(__func__); - dst->runtime->paint_mode = src->runtime->paint_mode; - dst->runtime->ob_mode = src->runtime->ob_mode; - dst->runtime->initialized = true; + if (src->runtime) { + dst->runtime->paint_mode = src->runtime->paint_mode; + dst->runtime->ob_mode = src->runtime->ob_mode; + dst->runtime->initialized = true; + } } void BKE_paint_settings_foreach_mode(ToolSettings *ts, blender::FunctionRef fn)