Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/readfile.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 3,299 Lines • ▼ Show 20 Lines | for (CacheFile *cache_file = bmain->cachefiles.first; cache_file; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| static void direct_link_cachefile(FileData *fd, CacheFile *cache_file) | static void direct_link_cachefile(FileData *fd, CacheFile *cache_file) | ||||
| { | { | ||||
| BLI_listbase_clear(&cache_file->object_paths); | BLI_listbase_clear(&cache_file->object_paths); | ||||
| cache_file->handle = NULL; | cache_file->handle = NULL; | ||||
| cache_file->handle_mutex = NULL; | cache_file->handle_filepath[0] = '\0'; | ||||
| cache_file->handle_readers = NULL; | |||||
| /* relink animdata */ | /* relink animdata */ | ||||
| cache_file->adt = newdataadr(fd, cache_file->adt); | cache_file->adt = newdataadr(fd, cache_file->adt); | ||||
| direct_link_animdata(fd, cache_file->adt); | direct_link_animdata(fd, cache_file->adt); | ||||
| } | } | ||||
| /** \} */ | /** \} */ | ||||
| ▲ Show 20 Lines • Show All 417 Lines • ▼ Show 20 Lines | switch (con->type) { | ||||
| if (con->ownspace == CONSTRAINT_SPACE_POSE) { | if (con->ownspace == CONSTRAINT_SPACE_POSE) { | ||||
| con->flag |= CONSTRAINT_SPACEONCE; | con->flag |= CONSTRAINT_SPACEONCE; | ||||
| } | } | ||||
| break; | break; | ||||
| } | } | ||||
| case CONSTRAINT_TYPE_TRANSFORM_CACHE: { | case CONSTRAINT_TYPE_TRANSFORM_CACHE: { | ||||
| bTransformCacheConstraint *data = con->data; | bTransformCacheConstraint *data = con->data; | ||||
| data->reader = NULL; | data->reader = NULL; | ||||
| data->reader_object_path[0] = '\0'; | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| static void lib_link_pose(FileData *fd, Main *bmain, Object *ob, bPose *pose) | static void lib_link_pose(FileData *fd, Main *bmain, Object *ob, bPose *pose) | ||||
| { | { | ||||
| bArmature *arm = ob->data; | bArmature *arm = ob->data; | ||||
| ▲ Show 20 Lines • Show All 1,990 Lines • ▼ Show 20 Lines | else if (md->type == eModifierType_CorrectiveSmooth) { | ||||
| /* runtime only */ | /* runtime only */ | ||||
| csmd->delta_cache = NULL; | csmd->delta_cache = NULL; | ||||
| csmd->delta_cache_num = 0; | csmd->delta_cache_num = 0; | ||||
| } | } | ||||
| else if (md->type == eModifierType_MeshSequenceCache) { | else if (md->type == eModifierType_MeshSequenceCache) { | ||||
| MeshSeqCacheModifierData *msmcd = (MeshSeqCacheModifierData *)md; | MeshSeqCacheModifierData *msmcd = (MeshSeqCacheModifierData *)md; | ||||
| msmcd->reader = NULL; | msmcd->reader = NULL; | ||||
| msmcd->reader_object_path[0] = '\0'; | |||||
| } | } | ||||
| else if (md->type == eModifierType_SurfaceDeform) { | else if (md->type == eModifierType_SurfaceDeform) { | ||||
| SurfaceDeformModifierData *smd = (SurfaceDeformModifierData *)md; | SurfaceDeformModifierData *smd = (SurfaceDeformModifierData *)md; | ||||
| smd->verts = newdataadr(fd, smd->verts); | smd->verts = newdataadr(fd, smd->verts); | ||||
| if (smd->verts) { | if (smd->verts) { | ||||
| for (int i = 0; i < smd->numverts; i++) { | for (int i = 0; i < smd->numverts; i++) { | ||||
| ▲ Show 20 Lines • Show All 6,083 Lines • Show Last 20 Lines | |||||