Blender V5.3
lib_id_eval.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
11
12#include "DNA_ID.h"
13#include "DNA_mesh_types.h"
14
15#include "BKE_lib_id.hh"
16#include "BKE_mesh.h"
17
18namespace blender {
19
21{
22 const ID_Type id_type = GS(id->name);
25 if (id_type == ID_ME) {
26 BKE_mesh_copy_parameters(id_cast<Mesh *>(id_cow), id_cast<const Mesh *>(id));
27 }
28 else {
30 }
31}
32
33} // namespace blender
ID and Library types, which are fundamental for SDNA.
#define ID_TYPE_SUPPORTS_PARAMS_WITHOUT_COW(id_type)
Definition DNA_ID.h:751
#define BLI_assert_unreachable()
BMesh Iterators.
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
void BKE_mesh_copy_parameters(Mesh *me_dst, const Mesh *me_src)
void BKE_id_eval_properties_copy(ID *id_cow, ID *id)
ID_Type GS(const char *name)
Definition DNA_ID.h:410
@ ID_TAG_COPIED_ON_EVAL
Definition DNA_ID.h:1000