Cleanup: quiet class-memaccess warning

This commit is contained in:
Campbell Barton
2023-07-11 12:20:35 +10:00
parent e9aba52f42
commit 6239246c9c

View File

@@ -892,8 +892,7 @@ static bool view3d_localview_init(const Depsgraph *depsgraph,
}
v3d->localvd = static_cast<View3D *>(MEM_mallocN(sizeof(View3D), "localview"));
memcpy(v3d->localvd, v3d, sizeof(View3D));
*v3d->localvd = blender::dna::shallow_copy(*v3d);
v3d->local_view_uuid = local_view_bit;
LISTBASE_FOREACH (ARegion *, region, &area->regionbase) {