|
Blender
V2.59
|
00001 /* 00002 * $Id: MOD_none.c 37158 2011-06-04 03:07:56Z campbellbarton $ 00003 * 00004 * ***** BEGIN GPL LICENSE BLOCK ***** 00005 * 00006 * This program is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU General Public License 00008 * as published by the Free Software Foundation; either version 2 00009 * of the License, or (at your option) any later version. The Blender 00010 * Foundation also sells licenses for use in proprietary software under 00011 * the Blender License. See http://www.blender.org/BL/ for information 00012 * about this. 00013 * 00014 * This program is distributed in the hope that it will be useful; 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 * GNU General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with this program; if not, write to the Free Software Foundation; 00021 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00022 * 00023 * The Original Code is Copyright (C) 2005 Blender Foundation. 00024 * All rights reserved. 00025 * 00026 * The Original Code is: all of this file. 00027 * 00028 * Contributor(s): Daniel Dunbar 00029 * Ton Roosendaal, 00030 * Ben Batt, 00031 * Brecht Van Lommel, 00032 * Campbell Barton 00033 * 00034 * ***** END GPL LICENSE BLOCK ***** 00035 */ 00036 00041 #include <stdio.h> 00042 00043 #include "BLI_utildefines.h" 00044 00045 #include "MOD_modifiertypes.h" 00046 00047 /* We only need to define isDisabled; because it always returns 1, 00048 * no other functions will be called 00049 */ 00050 00051 static int isDisabled(ModifierData *UNUSED(md), int UNUSED(userRenderParams)) 00052 { 00053 return 1; 00054 } 00055 00056 ModifierTypeInfo modifierType_None = { 00057 /* name */ "None", 00058 /* structName */ "ModifierData", 00059 /* structSize */ sizeof(ModifierData), 00060 /* type */ eModifierTypeType_None, 00061 /* flags */ eModifierTypeFlag_AcceptsMesh 00062 | eModifierTypeFlag_AcceptsCVs, 00063 00064 /* copyData */ NULL, 00065 /* deformVerts */ NULL, 00066 /* deformMatrices */ NULL, 00067 /* deformVertsEM */ NULL, 00068 /* deformMatricesEM */ NULL, 00069 /* applyModifier */ NULL, 00070 /* applyModifierEM */ NULL, 00071 /* initData */ NULL, 00072 /* requiredDataMask */ NULL, 00073 /* freeData */ NULL, 00074 /* isDisabled */ isDisabled, 00075 /* updateDepgraph */ NULL, 00076 /* dependsOnTime */ NULL, 00077 /* dependsOnNormals */ NULL, 00078 /* foreachObjectLink */ NULL, 00079 /* foreachIDLink */ NULL, 00080 };