Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_build.c
| /* SPDX-License-Identifier: GPL-2.0-or-later | /* SPDX-License-Identifier: GPL-2.0-or-later | ||||
| * Copyright 2005 Blender Foundation. All rights reserved. */ | * Copyright 2005 Blender Foundation. All rights reserved. */ | ||||
| /** \file | /** \file | ||||
| * \ingroup modifiers | * \ingroup modifiers | ||||
| */ | */ | ||||
| #include "MEM_guardedalloc.h" | #include "MEM_guardedalloc.h" | ||||
| #include "BLI_utildefines.h" | #include "BLI_utildefines.h" | ||||
| #include "BLI_ghash.h" | #include "BLI_ghash.h" | ||||
| #include "BLI_math_vector.h" | #include "BLI_math_vector.h" | ||||
| #include "BLI_rand.h" | #include "BLI_rand.h" | ||||
| #include "BLT_translation.h" | |||||
| #include "DNA_defaults.h" | #include "DNA_defaults.h" | ||||
| #include "DNA_mesh_types.h" | #include "DNA_mesh_types.h" | ||||
| #include "DNA_meshdata_types.h" | #include "DNA_meshdata_types.h" | ||||
| #include "DNA_object_types.h" | #include "DNA_object_types.h" | ||||
| #include "DNA_screen_types.h" | #include "DNA_screen_types.h" | ||||
| #include "DEG_depsgraph_query.h" | #include "DEG_depsgraph_query.h" | ||||
| ▲ Show 20 Lines • Show All 282 Lines • ▼ Show 20 Lines | |||||
| static void panelRegister(ARegionType *region_type) | static void panelRegister(ARegionType *region_type) | ||||
| { | { | ||||
| PanelType *panel_type = modifier_panel_register(region_type, eModifierType_Build, panel_draw); | PanelType *panel_type = modifier_panel_register(region_type, eModifierType_Build, panel_draw); | ||||
| modifier_subpanel_register( | modifier_subpanel_register( | ||||
| region_type, "randomize", "", random_panel_header_draw, random_panel_draw, panel_type); | region_type, "randomize", "", random_panel_header_draw, random_panel_draw, panel_type); | ||||
| } | } | ||||
| ModifierTypeInfo modifierType_Build = { | ModifierTypeInfo modifierType_Build = { | ||||
| /* name */ "Build", | /* name */ N_("Build"), | ||||
| /* structName */ "BuildModifierData", | /* structName */ "BuildModifierData", | ||||
| /* structSize */ sizeof(BuildModifierData), | /* structSize */ sizeof(BuildModifierData), | ||||
| /* srna */ &RNA_BuildModifier, | /* srna */ &RNA_BuildModifier, | ||||
| /* type */ eModifierTypeType_Nonconstructive, | /* type */ eModifierTypeType_Nonconstructive, | ||||
| /* flags */ eModifierTypeFlag_AcceptsMesh | eModifierTypeFlag_AcceptsCVs, | /* flags */ eModifierTypeFlag_AcceptsMesh | eModifierTypeFlag_AcceptsCVs, | ||||
| /* icon */ ICON_MOD_BUILD, | /* icon */ ICON_MOD_BUILD, | ||||
| /* copyData */ BKE_modifier_copydata_generic, | /* copyData */ BKE_modifier_copydata_generic, | ||||
| Show All 22 Lines | |||||