Blender  V2.93
MOD_none.c
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2005 Blender Foundation.
17  * All rights reserved.
18  */
19 
24 #include <stdio.h>
25 
26 #include "BLI_utildefines.h"
27 
28 #include "MOD_modifiertypes.h"
29 
30 #include "UI_resources.h"
31 
32 #include "RNA_access.h"
33 
34 /* We only need to define isDisabled; because it always returns 1,
35  * no other functions will be called
36  */
37 
38 static bool isDisabled(const struct Scene *UNUSED(scene),
39  ModifierData *UNUSED(md),
40  bool UNUSED(userRenderParams))
41 {
42  return true;
43 }
44 
46  /* name */ "None",
47  /* structName */ "ModifierData",
48  /* structSize */ sizeof(ModifierData),
49  /* srna */ &RNA_Modifier,
50  /* type */ eModifierTypeType_None,
52  /* icon */ ICON_NONE,
53 
54  /* copyData */ NULL,
55 
56  /* deformVerts */ NULL,
57  /* deformMatrices */ NULL,
58  /* deformVertsEM */ NULL,
59  /* deformMatricesEM */ NULL,
60  /* modifyMesh */ NULL,
61  /* modifyHair */ NULL,
62  /* modifyGeometrySet */ NULL,
63  /* modifyVolume */ NULL,
64 
65  /* initData */ NULL,
66  /* requiredDataMask */ NULL,
67  /* freeData */ NULL,
68  /* isDisabled */ isDisabled,
69  /* updateDepsgraph */ NULL,
70  /* dependsOnTime */ NULL,
71  /* dependsOnNormals */ NULL,
72  /* foreachIDLink */ NULL,
73  /* foreachTexLink */ NULL,
74  /* freeRuntimeData */ NULL,
75  /* panelRegister */ NULL,
76  /* blendWrite */ NULL,
77  /* blendRead */ NULL,
78 };
@ eModifierTypeFlag_AcceptsCVs
Definition: BKE_modifier.h:81
@ eModifierTypeFlag_AcceptsMesh
Definition: BKE_modifier.h:80
@ eModifierTypeType_None
Definition: BKE_modifier.h:50
#define UNUSED(x)
struct ModifierData ModifierData
ModifierTypeInfo modifierType_None
Definition: MOD_none.c:45
static bool isDisabled(const struct Scene *UNUSED(scene), ModifierData *UNUSED(md), bool UNUSED(userRenderParams))
Definition: MOD_none.c:38
StructRNA RNA_Modifier
Scene scene