diff options
Diffstat (limited to 'source/blender/modifiers/intern/MOD_featureline.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_featureline.c | 124 |
1 files changed, 0 insertions, 124 deletions
diff --git a/source/blender/modifiers/intern/MOD_featureline.c b/source/blender/modifiers/intern/MOD_featureline.c deleted file mode 100644 index 0d2e3c7ae6b..00000000000 --- a/source/blender/modifiers/intern/MOD_featureline.c +++ /dev/null @@ -1,124 +0,0 @@ -/* - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - * - * The Original Code is Copyright (C) 2005 by the Blender Foundation. - * All rights reserved. - */ - -/** \file - * \ingroup modifiers - */ - -#include "BLI_utildefines.h" - -#include "BLI_edgehash.h" -#include "BLI_kdtree.h" -#include "BLI_math.h" -#include "BLI_rand.h" - -#include "DNA_meshdata_types.h" -#include "DNA_scene_types.h" -#include "DNA_object_types.h" -#include "DNA_mesh_types.h" - -#include "BKE_deform.h" -#include "BKE_lattice.h" -#include "BKE_library.h" -#include "BKE_mesh.h" -#include "BKE_modifier.h" -#include "BKE_particle.h" -#include "BKE_scene.h" -#include "BKE_library_query.h" - -#include "DEG_depsgraph_query.h" - -#include "MEM_guardedalloc.h" - -#include "MOD_modifiertypes.h" - -#include "bmesh.h" -#include "bmesh_tools.h" - -#include "DEG_depsgraph.h" -#include "DEG_depsgraph_build.h" -#include "DEG_depsgraph_query.h" - -static void initData(ModifierData *md) -{ - FeatureLineModifierData *flmd = (FeatureLineModifierData *)md; - flmd->types = MOD_FEATURE_LINE_ALL; -} -static void freeData(ModifierData *md) -{ - FeatureLineModifierData *flmd = (FeatureLineModifierData *)md; -} -static void copyData(const ModifierData *md, ModifierData *target, const int flag) -{ - FeatureLineModifierData *tflmd = (FeatureLineModifierData *)target; - - modifier_copyData_generic(md, target, flag); -} -static bool dependsOnTime(ModifierData *UNUSED(md)) -{ - return true; /* ?? */ -} -static Mesh *applyModifier(ModifierData *md, const ModifierEvalContext *ctx, Mesh *mesh) -{ - FeatureLineModifierData *flmd = (FeatureLineModifierData *)md; - return mesh; -} - -static void foreachObjectLink(ModifierData *md, Object *ob, ObjectWalkFunc walk, void *userData) -{ - FeatureLineModifierData *flmd = (FeatureLineModifierData *)md; - - walk(userData, ob, &flmd->target, IDWALK_NOP); -} - -static bool isDisabled(const struct Scene *scene, struct ModifierData *md, bool userRenderParams) -{ - FeatureLineModifierData *flmd = (FeatureLineModifierData *)md; - if (!flmd->target) { - return true; - } - return false; -} - -ModifierTypeInfo modifierType_FeatureLine = { - /* name */ "Feature Line", - /* structName */ "FeatureLineModifierData", - /* structSize */ sizeof(FeatureLineModifierData), - /* type */ eModifierTypeType_Constructive, - /* flags */ eModifierTypeFlag_AcceptsMesh | eModifierTypeFlag_Single, - /* copyData */ copyData, - - /* deformVerts */ NULL, - /* deformMatrices */ NULL, - /* deformVertsEM */ NULL, - /* deformMatricesEM */ NULL, - /* applyModifier */ applyModifier, - - /* initData */ initData, - /* requiredDataMask */ NULL, - /* freeData */ freeData, - /* isDisabled */ isDisabled, - /* updateDepsgraph */ NULL, - /* dependsOnTime */ dependsOnTime, - /* dependsOnNormals */ NULL, - /* foreachObjectLink */ foreachObjectLink, - /* foreachIDLink */ NULL, - /* foreachTexLink */ NULL, - /* freeRuntimeData */ NULL, -}; |