Blender V5.0
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
19{
20 const ID_Type id_type = GS(id->name);
23 if (id_type == ID_ME) {
24 BKE_mesh_copy_parameters((Mesh *)id_cow, (const Mesh *)id);
25 }
26 else {
28 }
29}
void BKE_mesh_copy_parameters(Mesh *me_dst, const Mesh *me_src)
#define BLI_assert_unreachable()
Definition BLI_assert.h:93
#define BLI_assert(a)
Definition BLI_assert.h:46
ID and Library types, which are fundamental for SDNA.
@ ID_TAG_COPIED_ON_EVAL
Definition DNA_ID.h:997
#define ID_TYPE_SUPPORTS_PARAMS_WITHOUT_COW(id_type)
Definition DNA_ID.h:745
ID_Type
@ ID_ME
#define GS(x)
void BKE_id_eval_properties_copy(ID *id_cow, ID *id)
Definition DNA_ID.h:414
int tag
Definition DNA_ID.h:442
char name[258]
Definition DNA_ID.h:432