Blender
V3.3
|
#include <stdio.h>
#include "BLI_utildefines.h"
#include "BLI_math.h"
#include "BLI_path_util.h"
#include "BLI_string.h"
#include "BLT_translation.h"
#include "DNA_defaults.h"
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "BKE_context.h"
#include "BKE_deform.h"
#include "BKE_lib_id.h"
#include "BKE_main.h"
#include "BKE_mesh.h"
#include "BKE_mesh_wrapper.h"
#include "BKE_scene.h"
#include "BKE_screen.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "RNA_access.h"
#include "RNA_prototypes.h"
#include "DEG_depsgraph_query.h"
#include "MEM_guardedalloc.h"
#include "MOD_meshcache_util.h"
#include "MOD_modifiertypes.h"
#include "MOD_ui_common.h"
#include "MOD_util.h"
Go to the source code of this file.
Functions | |
static void | initData (ModifierData *md) |
static bool | dependsOnTime (struct Scene *UNUSED(scene), ModifierData *md) |
static bool | isDisabled (const struct Scene *UNUSED(scene), ModifierData *md, bool UNUSED(useRenderParams)) |
static void | meshcache_do (MeshCacheModifierData *mcmd, Scene *scene, Object *ob, Mesh *mesh, float(*vertexCos_Real)[3], int verts_num) |
static void | deformVerts (ModifierData *md, const ModifierEvalContext *ctx, Mesh *mesh, float(*vertexCos)[3], int verts_num) |
static void | deformVertsEM (ModifierData *md, const ModifierEvalContext *ctx, struct BMEditMesh *editData, Mesh *mesh, float(*vertexCos)[3], int verts_num) |
static void | panel_draw (const bContext *UNUSED(C), Panel *panel) |
static void | time_remapping_panel_draw (const bContext *UNUSED(C), Panel *panel) |
static void | axis_mapping_panel_draw (const bContext *UNUSED(C), Panel *panel) |
static void | panelRegister (ARegionType *region_type) |
Variables | |
ModifierTypeInfo | modifierType_MeshCache |
Definition at line 387 of file MOD_meshcache.c.
References col, Panel::layout, modifier_panel_get_property_pointers(), NULL, ptr, RNA_enum_get(), UI_ITEM_R_EXPAND, uiItemR(), uiLayoutColumn(), uiLayoutSetPropSep(), and uiLayoutSetRedAlert().
Referenced by panelRegister().
|
static |
Definition at line 287 of file MOD_meshcache.c.
References BKE_id_free(), MeshCacheModifierData::defgrp_name, DEG_get_evaluated_scene(), ModifierEvalContext::depsgraph, ELEM, mesh, meshcache_do(), MOD_deform_mesh_eval_get(), NULL, OB_MESH, ModifierEvalContext::object, scene, and Object::type.
|
static |
Definition at line 309 of file MOD_meshcache.c.
References BKE_id_free(), BKE_mesh_wrapper_ensure_mdata(), MeshCacheModifierData::defgrp_name, DEG_get_evaluated_scene(), ModifierEvalContext::depsgraph, ELEM, mesh, meshcache_do(), MOD_deform_mesh_eval_get(), NULL, OB_MESH, ModifierEvalContext::object, scene, and Object::type.
|
static |
Definition at line 57 of file MOD_meshcache.c.
References MOD_MESHCACHE_PLAY_CFEA, and MeshCacheModifierData::play_mode.
|
static |
Definition at line 48 of file MOD_meshcache.c.
References BLI_assert, DNA_struct_default_get, MEMCMP_STRUCT_AFTER_IS_ZERO, and MEMCPY_STRUCT_AFTER.
|
static |
Definition at line 63 of file MOD_meshcache.c.
References MeshCacheModifierData::factor, and MeshCacheModifierData::filepath.
|
static |
Definition at line 73 of file MOD_meshcache.c.
References BKE_defvert_find_weight(), BKE_mesh_calc_relative_deform(), BKE_modifier_set_error(), BKE_scene_ctime_get(), BLI_path_abs(), BLI_strncpy(), copy_v3_v3(), MeshCacheModifierData::defgrp_name, MeshCacheModifierData::deform_mode, Mesh::dvert, MeshCacheModifierData::eval_factor, MeshCacheModifierData::eval_frame, MeshCacheModifierData::eval_time, MeshCacheModifierData::factor, FILE_MAX, MeshCacheModifierData::filepath, MeshCacheModifierData::flag, MeshCacheModifierData::flip_axis, float(), MeshCacheModifierData::forward_axis, FPS, MeshCacheModifierData::frame_scale, MeshCacheModifierData::frame_start, ID_BLEND_PATH_FROM_GLOBAL, MeshCacheModifierData::interp, interp_v3_v3v3(), interp_vn_vn(), mat3_from_axis_conversion(), MEM_freeN, MEM_malloc_arrayN, mesh, Mesh::mloop, MOD_get_vgroup(), MOD_MESHCACHE_DEFORM_INTEGRATE, MOD_MESHCACHE_INVERT_VERTEX_GROUP, MOD_MESHCACHE_PLAY_CFEA, MOD_meshcache_read_mdd_times(), MOD_meshcache_read_pc2_times(), MOD_MESHCACHE_TIME_FACTOR, MOD_MESHCACHE_TIME_FRAME, MOD_MESHCACHE_TIME_SECONDS, MOD_MESHCACHE_TYPE_MDD, MOD_MESHCACHE_TYPE_PC2, MeshCacheModifierData::modifier, Mesh::mpoly, mul_m3_m3m3(), mul_m3_v3(), Mesh::mvert, NULL, OB_MESH, MeshCacheModifierData::play_mode, scene, time, MeshCacheModifierData::time_mode, Mesh::totpoly, Mesh::totvert, MeshCacheModifierData::type, unit_m3(), UNLIKELY, and MeshCacheModifierData::up_axis.
Referenced by deformVerts(), and deformVertsEM().
Definition at line 337 of file MOD_meshcache.c.
References Panel::layout, modifier_panel_end(), modifier_panel_get_property_pointers(), modifier_vgroup_ui(), NULL, ptr, UI_ITEM_R_SLIDER, uiItemR(), and uiLayoutSetPropSep().
Referenced by panelRegister().
|
static |
Definition at line 404 of file MOD_meshcache.c.
References axis_mapping_panel_draw(), eModifierType_MeshCache, modifier_panel_register(), modifier_subpanel_register(), NULL, panel_draw(), and time_remapping_panel_draw().
Definition at line 357 of file MOD_meshcache.c.
References Panel::layout, MOD_MESHCACHE_PLAY_CFEA, MOD_MESHCACHE_TIME_FRAME, MOD_MESHCACHE_TIME_SECONDS, modifier_panel_get_property_pointers(), NULL, ptr, RNA_enum_get(), UI_ITEM_R_EXPAND, uiItemR(), and uiLayoutSetPropSep().
Referenced by panelRegister().
ModifierTypeInfo modifierType_MeshCache |
Definition at line 418 of file MOD_meshcache.c.