diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-11-30 15:27:00 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-11-30 17:40:57 +0300 |
commit | 856b858f88052371f231c69c182e6169101f9b39 (patch) | |
tree | 07c77887f7db18c3baa5b81946d9a4b552060c1c /source/blender/blenkernel/intern | |
parent | e68c0bf76a4ccb16f51b7caf488c2f345552eea9 (diff) |
Studiolight: Fix bad memcpy size
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/studiolight.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/studiolight.c b/source/blender/blenkernel/intern/studiolight.c index 10d9dcfbfec..3a98d5ea90a 100644 --- a/source/blender/blenkernel/intern/studiolight.c +++ b/source/blender/blenkernel/intern/studiolight.c @@ -1376,7 +1376,7 @@ StudioLight *BKE_studiolight_studio_edit_get(void) sl.flag = STUDIOLIGHT_TYPE_STUDIO; memcpy(sl.light, U.light, sizeof(*sl.light) * 3); - memcpy(sl.light_ambient, U.light_ambient, sizeof(sl.light_ambient) * 3); + memcpy(sl.light_ambient, U.light_ambient, sizeof(*sl.light_ambient) * 3); return &sl; } |