Blender V5.0
modifiers/intern/MOD_none.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2005 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
10
11#include "UI_resources.hh"
12
13#include "RNA_prototypes.hh"
14
15/* We only need to define is_disabled; because it always returns 1,
16 * no other functions will be called
17 */
18
19static bool is_disabled(const Scene * /*scene*/, ModifierData * /*md*/, bool /*use_render_params*/)
20{
21 return true;
22}
23
25 /*idname*/ "None",
26 /*name*/ "None",
27 /*struct_name*/ "ModifierData",
28 /*struct_size*/ sizeof(ModifierData),
29 /*srna*/ &RNA_Modifier,
32 /*icon*/ ICON_NONE,
33
34 /*copy_data*/ nullptr,
35
36 /*deform_verts*/ nullptr,
37 /*deform_matrices*/ nullptr,
38 /*deform_verts_EM*/ nullptr,
39 /*deform_matrices_EM*/ nullptr,
40 /*modify_mesh*/ nullptr,
41 /*modify_geometry_set*/ nullptr,
42
43 /*init_data*/ nullptr,
44 /*required_data_mask*/ nullptr,
45 /*free_data*/ nullptr,
46 /*is_disabled*/ is_disabled,
47 /*update_depsgraph*/ nullptr,
48 /*depends_on_time*/ nullptr,
49 /*depends_on_normals*/ nullptr,
50 /*foreach_ID_link*/ nullptr,
51 /*foreach_tex_link*/ nullptr,
52 /*free_runtime_data*/ nullptr,
53 /*panel_register*/ nullptr,
54 /*blend_write*/ nullptr,
55 /*blend_read*/ nullptr,
56 /*foreach_cache*/ nullptr,
57 /*foreach_working_space_color*/ nullptr,
58};
@ eModifierTypeFlag_AcceptsCVs
@ eModifierTypeFlag_AcceptsMesh
static bool is_disabled
ModifierTypeInfo modifierType_None