Blender V4.3
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
9#include "BLI_utildefines.h"
10
11#include "MOD_modifiertypes.hh"
12
13#include "UI_resources.hh"
14
15#include "RNA_prototypes.hh"
16
17/* We only need to define is_disabled; because it always returns 1,
18 * no other functions will be called
19 */
20
21static bool is_disabled(const Scene * /*scene*/, ModifierData * /*md*/, bool /*use_render_params*/)
22{
23 return true;
24}
25
27 /*idname*/ "None",
28 /*name*/ "None",
29 /*struct_name*/ "ModifierData",
30 /*struct_size*/ sizeof(ModifierData),
31 /*srna*/ &RNA_Modifier,
34 /*icon*/ ICON_NONE,
35
36 /*copy_data*/ nullptr,
37
38 /*deform_verts*/ nullptr,
39 /*deform_matrices*/ nullptr,
40 /*deform_verts_EM*/ nullptr,
41 /*deform_matrices_EM*/ nullptr,
42 /*modify_mesh*/ nullptr,
43 /*modify_geometry_set*/ nullptr,
44
45 /*init_data*/ nullptr,
46 /*required_data_mask*/ nullptr,
47 /*free_data*/ nullptr,
48 /*is_disabled*/ is_disabled,
49 /*update_depsgraph*/ nullptr,
50 /*depends_on_time*/ nullptr,
51 /*depends_on_normals*/ nullptr,
52 /*foreach_ID_link*/ nullptr,
53 /*foreach_tex_link*/ nullptr,
54 /*free_runtime_data*/ nullptr,
55 /*panel_register*/ nullptr,
56 /*blend_write*/ nullptr,
57 /*blend_read*/ nullptr,
58 /*foreach_cache*/ nullptr,
59};
@ eModifierTypeFlag_AcceptsCVs
@ eModifierTypeFlag_AcceptsMesh
struct ModifierData ModifierData
static bool is_disabled
ModifierTypeInfo modifierType_None
Definition MOD_none.cc:26