Struct members loc/size were misleading as they read as if the object data stored object level transform channels. Rename these to match RNA with a `texspace_*` prefix to make it clear these struct members only apply to texture-space transform. Also rename ME_AUTOSPACE & ME_AUTOSPACE_EVALUATED to ME_TEXSPACE_FLAG_AUTO & ME_TEXSPACE_FLAG_AUTO_EVALUATED.
32 lines
792 B
C++
32 lines
792 B
C++
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/** \file
|
|
* \ingroup DNA
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
/* Struct members on own line. */
|
|
/* clang-format off */
|
|
|
|
/* -------------------------------------------------------------------- */
|
|
/** \name Mesh Struct
|
|
* \{ */
|
|
|
|
#define _DNA_DEFAULT_Mesh \
|
|
{ \
|
|
.texspace_size = {1.0f, 1.0f, 1.0f}, \
|
|
.smoothresh = DEG2RADF(30), \
|
|
.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_PAINT_MASK | ME_REMESH_REPROJECT_SCULPT_FACE_SETS | ME_REMESH_REPROJECT_VERTEX_COLORS, \
|
|
.editflag = ME_EDIT_MIRROR_VERTEX_GROUPS \
|
|
}
|
|
|
|
/** \} */
|
|
|
|
/* clang-format on */
|