Blender
V2.93
source
blender
modifiers
intern
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
45
ModifierTypeInfo
modifierType_None
= {
46
/* name */
"None"
,
47
/* structName */
"ModifierData"
,
48
/* structSize */
sizeof
(
ModifierData
),
49
/* srna */
&
RNA_Modifier
,
50
/* type */
eModifierTypeType_None
,
51
/* flags */
eModifierTypeFlag_AcceptsMesh
|
eModifierTypeFlag_AcceptsCVs
,
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
@ eModifierTypeFlag_AcceptsCVs
Definition:
BKE_modifier.h:81
eModifierTypeFlag_AcceptsMesh
@ eModifierTypeFlag_AcceptsMesh
Definition:
BKE_modifier.h:80
eModifierTypeType_None
@ eModifierTypeType_None
Definition:
BKE_modifier.h:50
BLI_utildefines.h
UNUSED
#define UNUSED(x)
Definition:
BLI_utildefines.h:683
ModifierData
struct ModifierData ModifierData
MOD_modifiertypes.h
modifierType_None
ModifierTypeInfo modifierType_None
Definition:
MOD_none.c:45
isDisabled
static bool isDisabled(const struct Scene *UNUSED(scene), ModifierData *UNUSED(md), bool UNUSED(userRenderParams))
Definition:
MOD_none.c:38
RNA_access.h
RNA_Modifier
StructRNA RNA_Modifier
UI_resources.h
NULL
return NULL
Definition:
bmesh_operator_api_inline.h:224
scene
Scene scene
Definition:
deg_eval_copy_on_write.cc:120
ModifierData
Definition:
DNA_modifier_types.h:118
ModifierTypeInfo
Definition:
BKE_modifier.h:158
Scene
Definition:
DNA_scene_types.h:1684
Generated on Tue Jan 31 2023 14:37:24 for Blender by
doxygen
1.9.1