[Bf-blender-cvs] [4307c0eb682] sculpt-dev: try to fix weird gcc compile error

Joseph Eagar noreply at git.blender.org
Tue Sep 21 07:56:11 CEST 2021


Commit: 4307c0eb68273013b447f1c49157405be838cf46
Author: Joseph Eagar
Date:   Mon Sep 20 22:56:02 2021 -0700
Branches: sculpt-dev
https://developer.blender.org/rB4307c0eb68273013b447f1c49157405be838cf46

try to fix weird gcc compile error

===================================================================

M	source/blender/blenkernel/intern/brush_engine.c

===================================================================

diff --git a/source/blender/blenkernel/intern/brush_engine.c b/source/blender/blenkernel/intern/brush_engine.c
index 3f986675008..068f088d00b 100644
--- a/source/blender/blenkernel/intern/brush_engine.c
+++ b/source/blender/blenkernel/intern/brush_engine.c
@@ -461,7 +461,7 @@ BrushChannelType *BKE_brush_default_channel_def()
 
 ATTR_NO_OPT void BKE_brush_channel_def_copy(BrushChannelType *dst, BrushChannelType *src)
 {
-  *dst = *src;
+  memcpy(dst, src, sizeof(*dst));
 }
 
 ATTR_NO_OPT BrushChannelType *BKE_brush_builtin_channel_def_find(const char *name)



More information about the Bf-blender-cvs mailing list