This commit introduces the `radial_symmetry` property on the `Mesh` datablock and simultaneously removes the `radial_symm` property in Sculpt, Vertex Paint, and Weight Paint. This allows users to have these symmetry values defined on a per-object basis instead of needing to reconfigure it for each mesh. Current values stored on the `ToolSettings` on a per-scene basis are not copied to each mesh in a scene. This is done to avoid introducing potentially inaccurate data to a large number of meshes at the cost of some minor backwards incompatibility. Part of #108107 Pull Request: https://projects.blender.org/blender/blender/pulls/141108
33 lines
736 B
C
33 lines
736 B
C
/* SPDX-FileCopyrightText: 2023 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/** \file
|
|
* \ingroup DNA
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
/* clang-format off */
|
|
|
|
/* -------------------------------------------------------------------- */
|
|
/** \name Mesh Struct
|
|
* \{ */
|
|
|
|
#define _DNA_DEFAULT_Mesh \
|
|
{ \
|
|
.texspace_size = {1.0f, 1.0f, 1.0f}, \
|
|
.texspace_flag = ME_TEXSPACE_FLAG_AUTO, \
|
|
.remesh_voxel_size = 0.1f, \
|
|
.remesh_voxel_adaptivity = 0.0f, \
|
|
.face_sets_color_seed = 0, \
|
|
.face_sets_color_default = 1, \
|
|
.flag = ME_REMESH_REPROJECT_VOLUME | ME_REMESH_REPROJECT_ATTRIBUTES, \
|
|
.editflag = ME_EDIT_MIRROR_VERTEX_GROUPS, \
|
|
.radial_symmetry = {1, 1, 1} \
|
|
}
|
|
|
|
/** \} */
|
|
|
|
/* clang-format on */
|