Blender V2.61 - r43446
Classes | Defines | Typedefs | Functions | Variables

readfile.c File Reference

#include "zlib.h"
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <fcntl.h>
#include <string.h>
#include <math.h>
#include <stdarg.h>
#include <unistd.h>
#include "DNA_anim_types.h"
#include "DNA_armature_types.h"
#include "DNA_actuator_types.h"
#include "DNA_brush_types.h"
#include "DNA_camera_types.h"
#include "DNA_cloth_types.h"
#include "DNA_controller_types.h"
#include "DNA_constraint_types.h"
#include "DNA_dynamicpaint_types.h"
#include "DNA_effect_types.h"
#include "DNA_fileglobal_types.h"
#include "DNA_genfile.h"
#include "DNA_group_types.h"
#include "DNA_gpencil_types.h"
#include "DNA_ipo_types.h"
#include "DNA_key_types.h"
#include "DNA_lattice_types.h"
#include "DNA_lamp_types.h"
#include "DNA_meta_types.h"
#include "DNA_material_types.h"
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_nla_types.h"
#include "DNA_node_types.h"
#include "DNA_object_fluidsim.h"
#include "DNA_packedFile_types.h"
#include "DNA_particle_types.h"
#include "DNA_property_types.h"
#include "DNA_text_types.h"
#include "DNA_view3d_types.h"
#include "DNA_screen_types.h"
#include "DNA_sensor_types.h"
#include "DNA_sdna_types.h"
#include "DNA_scene_types.h"
#include "DNA_sequence_types.h"
#include "DNA_smoke_types.h"
#include "DNA_speaker_types.h"
#include "DNA_sound_types.h"
#include "DNA_space_types.h"
#include "DNA_vfont_types.h"
#include "DNA_world_types.h"
#include "DNA_movieclip_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "BKE_anim.h"
#include "BKE_action.h"
#include "BKE_armature.h"
#include "BKE_brush.h"
#include "BKE_colortools.h"
#include "BKE_constraint.h"
#include "BKE_context.h"
#include "BKE_curve.h"
#include "BKE_deform.h"
#include "BKE_effect.h"
#include "BKE_fcurve.h"
#include "BKE_global.h"
#include "BKE_group.h"
#include "BKE_image.h"
#include "BKE_lattice.h"
#include "BKE_library.h"
#include "BKE_idcode.h"
#include "BKE_material.h"
#include "BKE_main.h"
#include "BKE_mesh.h"
#include "BKE_modifier.h"
#include "BKE_multires.h"
#include "BKE_node.h"
#include "BKE_ocean.h"
#include "BKE_object.h"
#include "BKE_paint.h"
#include "BKE_particle.h"
#include "BKE_pointcache.h"
#include "BKE_property.h"
#include "BKE_report.h"
#include "BKE_sca.h"
#include "BKE_scene.h"
#include "BKE_screen.h"
#include "BKE_sequencer.h"
#include "BKE_text.h"
#include "BKE_texture.h"
#include "BKE_tracking.h"
#include "BKE_utildefines.h"
#include "BKE_sound.h"
#include "IMB_imbuf.h"
#include "NOD_socket.h"
#include "BLO_readfile.h"
#include "BLO_undofile.h"
#include "RE_engine.h"
#include "readfile.h"
#include "PIL_time.h"
#include <errno.h>

Go to the source code of this file.

Classes

struct  OldNew
struct  OldNewMap
struct  tConstraintLinkData
struct  bheadsort
struct  tConstraintExpandData

Defines

#define DNA_DEPRECATED_ALLOW
#define GS(a)   (*((short *)(a)))
#define SWITCH_LONGINT(a)

Typedefs

typedef struct OldNew OldNew
typedef struct OldNewMap OldNewMap
typedef struct tConstraintLinkData tConstraintLinkData
typedef struct
tConstraintExpandData 
tConstraintExpandData

Functions

static void * read_struct (FileData *fd, BHead *bh, const char *blockname)
static void direct_link_modifiers (FileData *fd, ListBase *lb)
static void convert_tface_mt (FileData *fd, Main *main)
static void BKE_reportf_wrap (ReportList *reports, ReportType type, const char *format,...)
static OldNewMapoldnewmap_new (void)
static int verg_oldnewmap (const void *v1, const void *v2)
static void oldnewmap_sort (FileData *fd)
static void oldnewmap_insert (OldNewMap *onm, void *oldaddr, void *newaddr, int nr)
static void * oldnewmap_lookup_and_inc (OldNewMap *onm, void *addr)
static void * oldnewmap_liblookup (OldNewMap *onm, void *addr, void *lib)
static void oldnewmap_free_unused (OldNewMap *onm)
static void oldnewmap_clear (OldNewMap *onm)
static void oldnewmap_free (OldNewMap *onm)
static void read_libraries (FileData *basefd, ListBase *mainlist)
static void add_main_to_main (Main *mainvar, Main *from)
void blo_join_main (ListBase *mainlist)
static void split_libdata (ListBase *lb, Main *first)
void blo_split_main (ListBase *mainlist, Main *main)
static void cleanup_path (const char *relabase, char *name)
static void read_file_version (FileData *fd, Main *main)
static Mainblo_find_main (FileData *fd, ListBase *mainlist, const char *filepath, const char *relabase)
static void switch_endian_bh4 (BHead4 *bhead)
static void switch_endian_bh8 (BHead8 *bhead)
static void bh4_from_bh8 (BHead *bhead, BHead8 *bhead8, int do_endian_swap)
static void bh8_from_bh4 (BHead *bhead, BHead4 *bhead4)
static BHeadNget_bhead (FileData *fd)
BHeadblo_firstbhead (FileData *fd)
BHeadblo_prevbhead (FileData *UNUSED(fd), BHead *thisblock)
BHeadblo_nextbhead (FileData *fd, BHead *thisblock)
static void decode_blender_header (FileData *fd)
static int read_file_dna (FileData *fd)
static int fd_read_from_file (FileData *filedata, void *buffer, unsigned int size)
static int fd_read_gzip_from_file (FileData *filedata, void *buffer, unsigned int size)
static int fd_read_from_memory (FileData *filedata, void *buffer, unsigned int size)
static int fd_read_from_memfile (FileData *filedata, void *buffer, unsigned int size)
static FileDatafiledata_new (void)
static FileDatablo_decode_and_check (FileData *fd, ReportList *reports)
FileDatablo_openblenderfile (const char *filepath, ReportList *reports)
FileDatablo_openblendermemory (void *mem, int memsize, ReportList *reports)
FileDatablo_openblendermemfile (MemFile *memfile, ReportList *reports)
void blo_freefiledata (FileData *fd)
int BLO_has_bfile_extension (const char *str)
int BLO_is_a_library (const char *path, char *dir, char *group)
static void * newdataadr (FileData *fd, void *adr)
static void * newglobadr (FileData *fd, void *adr)
static void * newimaadr (FileData *fd, void *adr)
static void * newmclipadr (FileData *fd, void *adr)
static void * newlibadr (FileData *fd, void *lib, void *adr)
static void * newlibadr_us (FileData *fd, void *lib, void *adr)
static void change_idid_adr_fd (FileData *fd, void *old, void *new)
static void change_idid_adr (ListBase *mainlist, FileData *basefd, void *old, void *new)
void blo_clear_proxy_pointers_from_lib (Main *oldmain)
void blo_make_image_pointer_map (FileData *fd, Main *oldmain)
void blo_end_image_pointer_map (FileData *fd, Main *oldmain)
void blo_make_movieclip_pointer_map (FileData *fd, Main *oldmain)
void blo_end_movieclip_pointer_map (FileData *fd, Main *oldmain)
void blo_add_library_pointer_map (ListBase *mainlist, FileData *fd)
static void switch_endian_structs (struct SDNA *filesdna, BHead *bhead)
static void link_list (FileData *fd, ListBase *lb)
static void link_glob_list (FileData *fd, ListBase *lb)
static void test_pointer_array (FileData *fd, void **mat)
static void IDP_DirectLinkProperty (IDProperty *prop, int switch_endian, FileData *fd)
static void IDP_LibLinkProperty (IDProperty *prop, int switch_endian, FileData *fd)
static void IDP_DirectLinkIDPArray (IDProperty *prop, int switch_endian, FileData *fd)
static void IDP_DirectLinkArray (IDProperty *prop, int switch_endian, FileData *fd)
static void IDP_DirectLinkString (IDProperty *prop, FileData *fd)
static void IDP_DirectLinkGroup (IDProperty *prop, int switch_endian, FileData *fd)
static void IDP_LibLinkProperty (IDProperty *UNUSED(prop), int UNUSED(switch_endian), FileData *UNUSED(fd))
static void direct_link_curvemapping (FileData *fd, CurveMapping *cumap)
static void lib_link_brush (FileData *fd, Main *main)
static void direct_link_brush (FileData *fd, Brush *brush)
static void direct_link_script (FileData *UNUSED(fd), Script *script)
static PackedFiledirect_link_packedfile (FileData *fd, PackedFile *oldpf)
static PreviewImagedirect_link_preview_image (FileData *fd, PreviewImage *old_prv)
static void lib_link_ipo (FileData *fd, Main *main)
static void direct_link_ipo (FileData *fd, Ipo *ipo)
static void lib_link_nlastrips (FileData *fd, ID *id, ListBase *striplist)
static void direct_link_nlastrips (FileData *fd, ListBase *strips)
static void lib_link_constraint_channels (FileData *fd, ID *id, ListBase *chanbase)
static void lib_link_fmodifiers (FileData *fd, ID *id, ListBase *list)
static void lib_link_fcurves (FileData *fd, ID *id, ListBase *list)
static void direct_link_fmodifiers (FileData *fd, ListBase *list)
static void direct_link_fcurves (FileData *fd, ListBase *list)
static void lib_link_action (FileData *fd, Main *main)
static void direct_link_action (FileData *fd, bAction *act)
static void lib_link_nladata_strips (FileData *fd, ID *id, ListBase *list)
static void lib_link_nladata (FileData *fd, ID *id, ListBase *list)
static void direct_link_nladata_strips (FileData *fd, ListBase *list)
static void direct_link_nladata (FileData *fd, ListBase *list)
static void lib_link_keyingsets (FileData *fd, ID *id, ListBase *list)
static void direct_link_keyingsets (FileData *fd, ListBase *list)
static void lib_link_animdata (FileData *fd, ID *id, AnimData *adt)
static void direct_link_animdata (FileData *fd, AnimData *adt)
static void direct_link_motionpath (FileData *fd, bMotionPath *mpath)
static void lib_link_ntree (FileData *fd, ID *id, bNodeTree *ntree)
static void lib_link_nodetree (FileData *fd, Main *main)
static void do_versions_socket_default_value (bNodeSocket *sock)
static void do_versions_nodetree_default_value (bNodeTree *ntree)
static void lib_nodetree_init_types_cb (void *UNUSED(data), ID *UNUSED(id), bNodeTree *ntree)
static void lib_node_do_versions_group_indices (bNode *gnode)
static void lib_nodetree_do_versions_group_indices_cb (void *UNUSED(data), ID *UNUSED(id), bNodeTree *ntree)
static void lib_nodetree_do_versions_update_cb (void *UNUSED(data), ID *UNUSED(id), bNodeTree *ntree)
static void lib_verify_nodetree (Main *main, int UNUSED(open))
static void direct_link_node_socket (FileData *fd, bNodeSocket *sock)
static void direct_link_nodetree (FileData *fd, bNodeTree *ntree)
static void lib_link_constraint_cb (bConstraint *UNUSED(con), ID **idpoin, void *userdata)
static void lib_link_constraints (FileData *fd, ID *id, ListBase *conlist)
static void direct_link_constraints (FileData *fd, ListBase *lb)
static void lib_link_pose (FileData *fd, Object *ob, bPose *pose)
static void lib_link_armature (FileData *fd, Main *main)
static void direct_link_bones (FileData *fd, Bone *bone)
static void direct_link_armature (FileData *fd, bArmature *arm)
static void lib_link_camera (FileData *fd, Main *main)
static void direct_link_camera (FileData *fd, Camera *ca)
static void lib_link_lamp (FileData *fd, Main *main)
static void direct_link_lamp (FileData *fd, Lamp *la)
static void lib_link_key (FileData *fd, Main *main)
static void switch_endian_keyblock (Key *key, KeyBlock *kb)
static void direct_link_key (FileData *fd, Key *key)
static void lib_link_mball (FileData *fd, Main *main)
static void direct_link_mball (FileData *fd, MetaBall *mb)
static void lib_link_world (FileData *fd, Main *main)
static void direct_link_world (FileData *fd, World *wrld)
static void lib_link_vfont (FileData *UNUSED(fd), Main *main)
static void direct_link_vfont (FileData *fd, VFont *vf)
static void lib_link_text (FileData *UNUSED(fd), Main *main)
static void direct_link_text (FileData *fd, Text *text)
static void lib_link_image (FileData *fd, Main *main)
static void link_ibuf_list (FileData *fd, ListBase *lb)
static void direct_link_image (FileData *fd, Image *ima)
static void lib_link_curve (FileData *fd, Main *main)
static void switch_endian_knots (Nurb *nu)
static void direct_link_curve (FileData *fd, Curve *cu)
static void lib_link_texture (FileData *fd, Main *main)
static void direct_link_texture (FileData *fd, Tex *tex)
static void lib_link_material (FileData *fd, Main *main)
static void direct_link_material (FileData *fd, Material *ma)
static void direct_link_pointcache (FileData *fd, PointCache *cache)
static void direct_link_pointcache_list (FileData *fd, ListBase *ptcaches, PointCache **ocache, int force_disk)
static void lib_link_partdeflect (FileData *fd, ID *id, PartDeflect *pd)
static void lib_link_particlesettings (FileData *fd, Main *main)
static void direct_link_partdeflect (PartDeflect *pd)
static void direct_link_particlesettings (FileData *fd, ParticleSettings *part)
static void lib_link_particlesystems (FileData *fd, Object *ob, ID *id, ListBase *particles)
static void direct_link_particlesystems (FileData *fd, ListBase *particles)
static void lib_link_mtface (FileData *fd, Mesh *me, MTFace *mtface, int totface)
static void lib_link_customdata_mtface (FileData *fd, Mesh *me, CustomData *fdata, int totface)
static void lib_link_mesh (FileData *fd, Main *main)
static void direct_link_dverts (FileData *fd, int count, MDeformVert *mdverts)
static void direct_link_mdisps (FileData *fd, int count, MDisps *mdisps, int external)
static void direct_link_customdata (FileData *fd, CustomData *data, int count)
static void direct_link_mesh (FileData *fd, Mesh *mesh)
static void lib_link_latt (FileData *fd, Main *main)
static void direct_link_latt (FileData *fd, Lattice *lt)
static void lib_link_modifiers__linkModifiers (void *userData, Object *ob, ID **idpoin)
static void lib_link_modifiers (FileData *fd, Object *ob)
static void lib_link_object (FileData *fd, Main *main)
static void direct_link_pose (FileData *fd, bPose *pose)
static void direct_link_object (FileData *fd, Object *ob)
static void composite_patch (bNodeTree *ntree, Scene *scene)
static void link_paint (FileData *fd, Scene *sce, Paint *p)
static void lib_link_scene (FileData *fd, Main *main)
static void link_recurs_seq (FileData *fd, ListBase *lb)
static void direct_link_paint (FileData *fd, Paint **paint)
static void direct_link_scene (FileData *fd, Scene *sce)
static void direct_link_windowmanager (FileData *fd, wmWindowManager *wm)
static void lib_link_windowmanager (FileData *fd, Main *main)
static void direct_link_gpencil (FileData *fd, bGPdata *gpd)
static void butspace_version_132 (SpaceButs *buts)
static void lib_link_screen (FileData *fd, Main *main)
static void * restore_pointer_by_name (Main *mainp, ID *id, int user)
void lib_link_screen_restore (Main *newmain, bScreen *curscreen, Scene *curscene)
static void direct_link_region (FileData *fd, ARegion *ar, int spacetype)
static void view3d_split_250 (View3D *v3d, ListBase *regions)
static void direct_link_screen (FileData *fd, bScreen *sc)
static void direct_link_library (FileData *fd, Library *lib, Main *main)
static void lib_link_library (FileData *UNUSED(fd), Main *main)
static void fix_relpaths_library (const char *basepath, Main *main)
static void lib_link_speaker (FileData *fd, Main *main)
static void direct_link_speaker (FileData *fd, Speaker *spk)
static void direct_link_sound (FileData *fd, bSound *sound)
static void lib_link_sound (FileData *fd, Main *main)
static void direct_link_group (FileData *fd, Group *group)
static void lib_link_group (FileData *fd, Main *main)
static void direct_link_movieReconstruction (FileData *fd, MovieTrackingReconstruction *reconstruction)
static void direct_link_movieTracks (FileData *fd, ListBase *tracksbase)
static void direct_link_movieclip (FileData *fd, MovieClip *clip)
static void lib_link_movieclip (FileData *fd, Main *main)
static const char * dataname (short id_code)
static BHeadread_data_into_oldnewmap (FileData *fd, BHead *bhead, const char *allocname)
static BHeadread_libblock (FileData *fd, Main *main, BHead *bhead, int flag, ID **id_r)
static BHeadread_global (BlendFileData *bfd, FileData *fd, BHead *bhead)
static void link_global (FileData *fd, BlendFileData *bfd)
static void vcol_to_fcol (Mesh *me)
static int map_223_keybd_code_to_224_keybd_code (int code)
static void do_version_bone_head_tail_237 (Bone *bone)
static void bone_version_238 (ListBase *lb)
static void bone_version_239 (ListBase *lb)
static void ntree_version_241 (bNodeTree *ntree)
static void ntree_version_242 (bNodeTree *ntree)
static void sort_shape_fix (Main *main)
static void customdata_version_242 (Mesh *me)
static void customdata_version_243 (Mesh *me)
static void do_version_ntree_242_2 (bNodeTree *ntree)
static void ntree_version_245 (FileData *fd, Library *lib, bNodeTree *ntree)
static void idproperties_fix_groups_lengths_recurse (IDProperty *prop)
static void idproperties_fix_group_lengths (ListBase idlist)
static void alphasort_version_246 (FileData *fd, Library *lib, Mesh *me)
static void area_add_header_region (ScrArea *sa, ListBase *lb)
static void sequencer_init_preview_region (ARegion *ar)
static void area_add_window_regions (ScrArea *sa, SpaceLink *sl, ListBase *lb)
static void do_versions_windowmanager_2_50 (bScreen *screen)
static void versions_gpencil_add_main (ListBase *lb, ID *id, const char *name)
static void do_versions_gpencil_2_50 (Main *main, bScreen *screen)
static PartEffdo_version_give_parteff_245 (Object *ob)
static void do_version_free_effect_245 (Effect *eff)
static void do_version_free_effects_245 (ListBase *lb)
static void do_version_mtex_factor_2_50 (MTex **mtex_array, short idtype)
static void do_version_mdef_250 (Main *main)
static void do_version_constraints_radians_degrees_250 (ListBase *lb)
static void do_version_old_trackto_to_constraints (Object *ob)
static void do_versions_seq_unique_name_all_strips (Scene *sce, ListBase *seqbasep)
static void do_version_bone_roll_256 (Bone *bone)
static void do_versions_nodetree_dynamic_sockets (bNodeTree *ntree)
static void do_versions_nodetree_image_default_alpha_output (bNodeTree *ntree)
static void do_version_ntree_tex_mapping_260 (void *UNUSED(data), ID *UNUSED(id), bNodeTree *ntree)
static void do_versions_nodetree_convert_angle (bNodeTree *ntree)
void do_versions_image_settings_2_60 (Scene *sce)
static void do_versions_nodetree_socket_use_flags_2_62 (bNodeTree *ntree)
static void do_versions_nodetree_socket_auto_hidden_flags_2_62 (bNodeTree *ntree)
static void do_versions (FileData *fd, Library *lib, Main *main)
static void lib_link_all (FileData *fd, Main *main)
static void direct_link_keymapitem (FileData *fd, wmKeyMapItem *kmi)
static BHeadread_userdef (BlendFileData *bfd, FileData *fd, BHead *bhead)
BlendFileDatablo_read_file_internal (FileData *fd, const char *filepath)
static int verg_bheadsort (const void *v1, const void *v2)
static void sort_bhead_old_map (FileData *fd)
static BHeadfind_previous_lib (FileData *fd, BHead *bhead)
static BHeadfind_bhead (FileData *fd, void *old)
char * bhead_id_name (FileData *fd, BHead *bhead)
static IDis_yet_read (FileData *fd, Main *mainvar, BHead *bhead)
static void expand_doit (FileData *fd, Main *mainvar, void *old)
static void expand_ipo (FileData *fd, Main *mainvar, Ipo *ipo)
static void expand_constraint_channels (FileData *fd, Main *mainvar, ListBase *chanbase)
static void expand_fmodifiers (FileData *fd, Main *mainvar, ListBase *list)
static void expand_fcurves (FileData *fd, Main *mainvar, ListBase *list)
static void expand_action (FileData *fd, Main *mainvar, bAction *act)
static void expand_keyingsets (FileData *fd, Main *mainvar, ListBase *list)
static void expand_animdata_nlastrips (FileData *fd, Main *mainvar, ListBase *list)
static void expand_animdata (FileData *fd, Main *mainvar, AnimData *adt)
static void expand_particlesettings (FileData *fd, Main *mainvar, ParticleSettings *part)
static void expand_group (FileData *fd, Main *mainvar, Group *group)
static void expand_key (FileData *fd, Main *mainvar, Key *key)
static void expand_nodetree (FileData *fd, Main *mainvar, bNodeTree *ntree)
static void expand_texture (FileData *fd, Main *mainvar, Tex *tex)
static void expand_brush (FileData *fd, Main *mainvar, Brush *brush)
static void expand_material (FileData *fd, Main *mainvar, Material *ma)
static void expand_lamp (FileData *fd, Main *mainvar, Lamp *la)
static void expand_lattice (FileData *fd, Main *mainvar, Lattice *lt)
static void expand_world (FileData *fd, Main *mainvar, World *wrld)
static void expand_mball (FileData *fd, Main *mainvar, MetaBall *mb)
static void expand_curve (FileData *fd, Main *mainvar, Curve *cu)
static void expand_mesh (FileData *fd, Main *mainvar, Mesh *me)
static void expand_constraint_cb (bConstraint *UNUSED(con), ID **idpoin, void *userdata)
static void expand_constraints (FileData *fd, Main *mainvar, ListBase *lb)
static void expand_bones (FileData *fd, Main *mainvar, Bone *bone)
static void expand_pose (FileData *fd, Main *mainvar, bPose *pose)
static void expand_armature (FileData *fd, Main *mainvar, bArmature *arm)
static void expand_object_expandModifiers (void *userData, Object *UNUSED(ob), ID **idpoin)
static void expand_object (FileData *fd, Main *mainvar, Object *ob)
static void expand_scene (FileData *fd, Main *mainvar, Scene *sce)
static void expand_camera (FileData *fd, Main *mainvar, Camera *ca)
static void expand_speaker (FileData *fd, Main *mainvar, Speaker *spk)
static void expand_sound (FileData *fd, Main *mainvar, bSound *snd)
static void expand_main (FileData *fd, Main *mainvar)
static int object_in_any_scene (Main *mainvar, Object *ob)
static void give_base_to_objects (Main *mainvar, Scene *sce, Library *lib, const short idcode, const short is_link)
static void give_base_to_groups (Main *mainvar, Scene *scene)
static IDappend_named_part (Main *mainl, FileData *fd, const char *idname, const short idcode)
static IDappend_named_part_ex (const bContext *C, Main *mainl, FileData *fd, const char *idname, const int idcode, const int flag)
IDBLO_library_append_named_part (Main *mainl, BlendHandle **bh, const char *idname, const int idcode)
IDBLO_library_append_named_part_ex (const bContext *C, Main *mainl, BlendHandle **bh, const char *idname, const int idcode, const short flag)
static void append_id_part (FileData *fd, Main *mainvar, ID *id, ID **id_r)
static Mainlibrary_append_begin (Main *mainvar, FileData **fd, const char *filepath)
MainBLO_library_append_begin (Main *mainvar, BlendHandle **bh, const char *filepath)
static void library_append_end (const bContext *C, Main *mainl, FileData **fd, int idcode, short flag)
void BLO_library_append_end (const bContext *C, struct Main *mainl, BlendHandle **bh, int idcode, short flag)
void * BLO_library_read_struct (FileData *fd, BHead *bh, const char *blockname)
static int mainvar_count_libread_blocks (Main *mainvar)
BlendFileDatablo_read_blendafterruntime (int file, const char *name, int actualsize, ReportList *reports)

Variables

static const char * ptcache_data_struct []

Detailed Description

Definition in file readfile.c.


Define Documentation

#define DNA_DEPRECATED_ALLOW

Definition at line 53 of file readfile.c.

#define GS (   a)    (*((short *)(a)))
#define SWITCH_LONGINT (   a)
Value:
{ \
    char s_i, *p_i; \
    p_i= (char *)&(a);  \
    s_i=p_i[0]; p_i[0]=p_i[7]; p_i[7]=s_i; \
    s_i=p_i[1]; p_i[1]=p_i[6]; p_i[6]=s_i; \
    s_i=p_i[2]; p_i[2]=p_i[5]; p_i[5]=s_i; \
    s_i=p_i[3]; p_i[3]=p_i[4]; p_i[4]=s_i; }

Definition at line 226 of file readfile.c.

Referenced by bh4_from_bh8(), IDP_DirectLinkArray(), IDP_DirectLinkProperty(), and test_pointer_array().


Typedef Documentation

typedef struct OldNew OldNew
typedef struct OldNewMap OldNewMap

Function Documentation

static void add_main_to_main ( Main mainvar,
Main from 
) [static]

Definition at line 427 of file readfile.c.

References BLI_movelisttolist(), MAX_LIBARRAY, and set_listbasepointers().

Referenced by blo_join_main().

static void alphasort_version_246 ( FileData fd,
Library lib,
Mesh me 
) [static]
static void append_id_part ( FileData fd,
Main mainvar,
ID id,
ID **  id_r 
) [static]
static ID* append_named_part ( Main mainl,
FileData fd,
const char *  idname,
const short  idcode 
) [static]
static ID* append_named_part_ex ( const bContext C,
Main mainl,
FileData fd,
const char *  idname,
const int  idcode,
const int  flag 
) [static]
static void area_add_header_region ( ScrArea sa,
ListBase lb 
) [static]
static void area_add_window_regions ( ScrArea sa,
SpaceLink sl,
ListBase lb 
) [static]
static void bh4_from_bh8 ( BHead bhead,
BHead8 bhead8,
int  do_endian_swap 
) [static]
static void bh8_from_bh4 ( BHead bhead,
BHead4 bhead4 
) [static]
char* bhead_id_name ( FileData fd,
BHead bhead 
)
static void BKE_reportf_wrap ( ReportList reports,
ReportType  type,
const char *  format,
  ... 
) [static]

Definition at line 260 of file readfile.c.

References BKE_report(), and G.

Referenced by direct_link_library(), do_versions(), lib_link_scene(), and read_libraries().

void blo_add_library_pointer_map ( ListBase mainlist,
FileData fd 
)
void blo_clear_proxy_pointers_from_lib ( Main oldmain)

Definition at line 1211 of file readfile.c.

References ListBase::first, Object::id, ID::lib, ID::next, NULL, Main::object, and Object::proxy_from.

Referenced by BLO_read_from_memfile().

static FileData* blo_decode_and_check ( FileData fd,
ReportList reports 
) [static]
void blo_end_image_pointer_map ( FileData fd,
Main oldmain 
)
void blo_end_movieclip_pointer_map ( FileData fd,
Main oldmain 
)
static Main* blo_find_main ( FileData fd,
ListBase mainlist,
const char *  filepath,
const char *  relabase 
) [static]
BHead* blo_firstbhead ( FileData fd)
void blo_freefiledata ( FileData fd)
int BLO_has_bfile_extension ( const char *  str)
int BLO_is_a_library ( const char *  path,
char *  dir,
char *  group 
)
void blo_join_main ( ListBase mainlist)
Main* BLO_library_append_begin ( struct Main mainvar,
BlendHandle **  bh,
const char *  filepath 
) [read]

Initialize the BlendHandle for appending or linking library data.

Parameters:
mainvarThe current main database eg G.main or CTX_data_main(C).
bhA blender file handle as returned by BLO_blendhandle_from_file or BLO_blendhandle_from_memory.
filepathUsed for relative linking, copied to the lib->name
Returns:
the library Main, to be passed to BLO_library_append_named_part as mainl.

Definition at line 14352 of file readfile.c.

References library_append_begin().

Referenced by bpy_lib_exit(), KX_BlenderSceneConverter::LinkBlendFile(), and wm_link_append_exec().

void BLO_library_append_end ( const bContext C,
struct Main mainl,
BlendHandle **  bh,
int  idcode,
short  flag 
)

Definition at line 14423 of file readfile.c.

References library_append_end().

ID* BLO_library_append_named_part ( struct Main mainl,
BlendHandle **  bh,
const char *  idname,
const int  idcode 
) [read]

Link/Append a named datablock from an external blend file.

Parameters:
mainlThe main database to link from (not the active one).
bhThe blender file handle.
idnameThe name of the datablock (without the 2 char ID prefix)
idcodeThe kind of datablock to link.
Returns:
the appended ID when found.

Definition at line 14301 of file readfile.c.

References append_named_part().

Referenced by bpy_lib_exit(), and KX_BlenderSceneConverter::LinkBlendFile().

ID* BLO_library_append_named_part_ex ( const bContext C,
Main mainl,
BlendHandle **  bh,
const char *  idname,
const int  idcode,
const short  flag 
)

Definition at line 14307 of file readfile.c.

References append_named_part_ex().

void* BLO_library_read_struct ( FileData fd,
BHead bh,
const char *  blockname 
)

Definition at line 14430 of file readfile.c.

References read_struct().

Referenced by BLO_blendhandle_get_previews().

void blo_make_image_pointer_map ( FileData fd,
Main oldmain 
)
void blo_make_movieclip_pointer_map ( FileData fd,
Main oldmain 
)
BHead* blo_nextbhead ( FileData fd,
BHead thisblock 
)
FileData* blo_openblenderfile ( const char *  filepath,
ReportList reports 
)
FileData* blo_openblendermemfile ( MemFile memfile,
ReportList reports 
)
FileData* blo_openblendermemory ( void *  mem,
int  memsize,
ReportList reports 
)
BHead* blo_prevbhead ( FileData UNUSEDfd,
BHead thisblock 
)

Definition at line 751 of file readfile.c.

References BHeadN::bhead, GET_INT_FROM_POINTER, NULL, and BHeadN::prev.

Referenced by find_previous_lib().

BlendFileData* blo_read_blendafterruntime ( int  file,
const char *  name,
int  actualsize,
ReportList reports 
)
BlendFileData* blo_read_file_internal ( FileData fd,
const char *  filepath 
)
void blo_split_main ( ListBase mainlist,
Main main 
)
static void bone_version_238 ( ListBase lb) [static]
static void bone_version_239 ( ListBase lb) [static]

Definition at line 6412 of file readfile.c.

References Bone::childbase, ListBase::first, Bone::layer, and Bone::next.

Referenced by do_versions().

static void butspace_version_132 ( SpaceButs buts) [static]

Definition at line 5090 of file readfile.c.

Referenced by lib_link_screen().

static void change_idid_adr ( ListBase mainlist,
FileData basefd,
void *  old,
void *  new 
) [static]
static void change_idid_adr_fd ( FileData fd,
void *  old,
void *  new 
) [static]
static void cleanup_path ( const char *  relabase,
char *  name 
) [static]

Definition at line 502 of file readfile.c.

References BLI_cleanup_dir(), BLI_splitdirstring(), and FILE_MAXFILE.

Referenced by blo_find_main(), direct_link_library(), and read_libraries().

static void composite_patch ( bNodeTree ntree,
Scene scene 
) [static]
void convert_tface_mt ( FileData fd,
Main main 
) [static]
static void customdata_version_242 ( Mesh me) [static]
static void customdata_version_243 ( Mesh me) [static]
static const char* dataname ( short  id_code) [static]

Definition at line 6073 of file readfile.c.

References ID_AC, ID_AR, ID_BR, ID_CA, ID_CU, ID_GD, ID_GR, ID_IM, ID_IP, ID_KE, ID_LA, ID_LI, ID_LT, ID_MA, ID_MB, ID_MC, ID_ME, ID_NT, ID_OB, ID_PA, ID_SCE, ID_SCR, ID_SO, ID_SPK, ID_TE, ID_TXT, ID_VF, and ID_WO.

Referenced by read_libblock().

static void decode_blender_header ( FileData fd) [static]
static void direct_link_action ( FileData fd,
bAction act 
) [static]
static void direct_link_animdata ( FileData fd,
AnimData adt 
) [static]
static void direct_link_armature ( FileData fd,
bArmature arm 
) [static]
static void direct_link_bones ( FileData fd,
Bone bone 
) [static]
static void direct_link_brush ( FileData fd,
Brush brush 
) [static]
static void direct_link_camera ( FileData fd,
Camera ca 
) [static]

Definition at line 2637 of file readfile.c.

References Camera::adt, direct_link_animdata(), and newdataadr().

Referenced by read_libblock().

static void direct_link_constraints ( FileData fd,
ListBase lb 
) [static]
static void direct_link_curve ( FileData fd,
Curve cu 
) [static]
static void direct_link_curvemapping ( FileData fd,
CurveMapping cumap 
) [static]
static void direct_link_customdata ( FileData fd,
CustomData data,
int  count 
) [static]
static void direct_link_dverts ( FileData fd,
int  count,
MDeformVert mdverts 
) [static]

Definition at line 3668 of file readfile.c.

References MDeformVert::dw, i, newdataadr(), NULL, and MDeformVert::totweight.

Referenced by direct_link_latt(), and direct_link_mesh().

static void direct_link_fcurves ( FileData fd,
ListBase list 
) [static]
static void direct_link_fmodifiers ( FileData fd,
ListBase list 
) [static]
static void direct_link_gpencil ( FileData fd,
bGPdata gpd 
) [static]
static void direct_link_group ( FileData fd,
Group group 
) [static]

Definition at line 5963 of file readfile.c.

References Group::gobject, and link_list().

Referenced by read_libblock().

static void direct_link_image ( FileData fd,
Image ima 
) [static]
static void direct_link_ipo ( FileData fd,
Ipo ipo 
) [static]
static void direct_link_key ( FileData fd,
Key key 
) [static]
static void direct_link_keyingsets ( FileData fd,
ListBase list 
) [static]
static void direct_link_keymapitem ( FileData fd,
wmKeyMapItem kmi 
) [static]
static void direct_link_lamp ( FileData fd,
Lamp la 
) [static]
static void direct_link_latt ( FileData fd,
Lattice lt 
) [static]
static void direct_link_library ( FileData fd,
Library lib,
Main main 
) [static]
static void direct_link_material ( FileData fd,
Material ma 
) [static]
static void direct_link_mball ( FileData fd,
MetaBall mb 
) [static]
static void direct_link_mdisps ( FileData fd,
int  count,
MDisps mdisps,
int  external 
) [static]
static void direct_link_mesh ( FileData fd,
Mesh mesh 
) [static]
static void direct_link_modifiers ( FileData fd,
ListBase lb 
) [static]

Definition at line 4191 of file readfile.c.

References MeshDeformModifierData::bindcagecos, MeshDeformModifierData::bindcos, MeshDeformModifierData::bindinfluences, MeshDeformModifierData::bindoffsets, MeshDeformModifierData::bindweights, BKE_add_effector_weights(), BKE_ptcache_free(), DynamicPaintModifierData::brush, SurfaceModifierData::bvhtree, CollisionModifierData::bvhtree, DynamicPaintSurface::canvas, DynamicPaintModifierData::canvas, ClothModifierData::clothObject, WeightVGEditModifierData::cmap_curve, SmokeModifierData::coll, ClothModifierData::coll_parms, WarpModifierData::curfalloff, CollisionModifierData::current_v, CollisionModifierData::current_x, CollisionModifierData::current_xnew, DynamicPaintSurface::data, direct_link_curvemapping(), direct_link_pointcache_list(), ParticleSystemModifierData::dm, SurfaceModifierData::dm, DynamicPaintBrushSettings::dm, DynamicPaintCanvasSettings::dm, SmokeModifierData::domain, MeshDeformModifierData::dyngrid, MeshDeformModifierData::dyninfluences, MeshDeformModifierData::dynverts, DynamicPaintSurface::effector_weights, SmokeDomainSettings::effector_weights, ClothSimSettings::effector_weights, SubsurfModifierData::emCache, eModifierType_Armature, eModifierType_Cloth, eModifierType_Collision, eModifierType_DynamicPaint, eModifierType_Explode, eModifierType_Fluidsim, eModifierType_Hook, eModifierType_MeshDeform, eModifierType_None, eModifierType_Ocean, eModifierType_ParticleSystem, eModifierType_Smoke, eModifierType_Subsurf, eModifierType_Surface, eModifierType_Warp, eModifierType_WeightVGEdit, eParticleSystemFlag_file_loaded, eParticleSystemFlag_psys_updated, ModifierData::error, ExplodeModifierData::facepa, FD_FLAGS_SWITCH_ENDIAN, ListBase::first, ParticleSystemModifierData::flag, PointCache::flag, FileData::flags, DynamicPaintCanvasSettings::flags, SmokeModifierData::flow, SmokeDomainSettings::fluid, FluidsimSettings::fmd, FluidsimModifierData::fss, HookModifierData::indexar, ListBase::last, link_list(), SubsurfModifierData::mCache, FluidsimSettings::meshVelocities, CollisionModifierData::mfaces, MOD_DPAINT_BAKING, MOD_OCEAN_REFRESH_ADD, MOD_OCEAN_REFRESH_RESET, MOD_OCEAN_REFRESH_SIM, MOD_SMOKE_TYPE_COLL, MOD_SMOKE_TYPE_DOMAIN, MOD_SMOKE_TYPE_FLOW, modifierType_getInfo(), newdataadr(), DynamicPaintSurface::next, ModifierData::next, NULL, SmokeCollSettings::numpoints, SurfaceModifierData::numverts, CollisionModifierData::numverts, OceanModifierData::ocean, OceanModifierData::oceancache, DynamicPaintBrushSettings::paint_ramp, DynamicPaintBrushSettings::pmd, DynamicPaintCanvasSettings::pmd, SmokeDomainSettings::point_cache, ClothModifierData::point_cache, DynamicPaintSurface::pointcache, SmokeCollSettings::points, ClothSimSettings::presets, ArmatureModifierData::prevCos, ParticleSystemModifierData::psys, DynamicPaintBrushSettings::psys, SmokeFlowSettings::psys, PTCACHE_FAKE_SMOKE, DynamicPaintSurface::ptcaches, SmokeDomainSettings::ptcaches, ClothModifierData::ptcaches, OceanModifierData::refresh, ClothSimSettings::reset, ModifierData::scene, SmokeDomainSettings::shadow, ClothModifierData::sim_parms, SmokeFlowSettings::smd, SmokeDomainSettings::smd, DynamicPaintCanvasSettings::surfaces, SWITCH_INT, SmokeDomainSettings::tex, SmokeDomainSettings::tex_shadow, SmokeDomainSettings::tex_wt, CollisionModifierData::time_x, CollisionModifierData::time_xnew, MeshDeformModifierData::totcagevert, HookModifierData::totindex, MeshDeformModifierData::totvert, SmokeModifierData::type, ModifierData::type, SurfaceModifierData::v, DynamicPaintBrushSettings::vel_ramp, SmokeDomainSettings::wt, SurfaceModifierData::x, CollisionModifierData::x, and CollisionModifierData::xnew.

Referenced by direct_link_object().

static void direct_link_motionpath ( FileData fd,
bMotionPath mpath 
) [static]

Definition at line 2120 of file readfile.c.

References newdataadr(), NULL, and bMotionPath::points.

Referenced by direct_link_object(), and direct_link_pose().

static void direct_link_movieclip ( FileData fd,
MovieClip clip 
) [static]
static void direct_link_movieReconstruction ( FileData fd,
MovieTrackingReconstruction reconstruction 
) [static]

Definition at line 6001 of file readfile.c.

References MovieTrackingReconstruction::cameras, and newdataadr().

Referenced by direct_link_movieclip().

static void direct_link_movieTracks ( FileData fd,
ListBase tracksbase 
) [static]
static void direct_link_nladata ( FileData fd,
ListBase list 
) [static]
static void direct_link_nladata_strips ( FileData fd,
ListBase list 
) [static]
static void direct_link_nlastrips ( FileData fd,
ListBase strips 
) [static]
static void direct_link_node_socket ( FileData fd,
bNodeSocket sock 
) [static]
static void direct_link_nodetree ( FileData fd,
bNodeTree ntree 
) [static]
static void direct_link_object ( FileData fd,
Object ob 
) [static]

Definition at line 4456 of file readfile.c.

References Object::actuators, Object::adt, Object::bb, BKE_add_effector_weights(), BLI_addhead(), BLI_addtail(), BLI_remlink(), SoftBody::bpoint, Object::bsoft, SoftBody::bspring, ObHook::cent, HookModifierData::cent, CLAMP(), Object::constraints, Object::controllers, copy_v3_v3(), Object::customdata_mask, WaveEff::damp, WaveModifierData::damp, bActuator::data, bController::data, bSensor::data, bProperty::data, Object::defbase, Object::derivedDeform, Object::derivedFinal, direct_link_animdata(), direct_link_constraints(), direct_link_modifiers(), direct_link_motionpath(), direct_link_nlastrips(), direct_link_partdeflect(), direct_link_particlesystems(), direct_link_pointcache_list(), direct_link_pose(), Object::disp, EFF_BUILD, EFF_PARTICLE, EFF_WAVE, SoftBody::effector_weights, eModifierType_Build, eModifierType_Hook, eModifierType_Wave, ObHook::falloff, HookModifierData::falloff, FD_FLAGS_SWITCH_ENDIAN, ListBase::first, WaveEff::flag, WaveModifierData::flag, Object::flag, FileData::flags, Object::fluidsimSettings, ObHook::force, HookModifierData::force, Object::gpulamp, WaveEff::height, WaveModifierData::height, HookModifierData::indexar, ObHook::indexar, Object::init_state, SoftBody::keys, PartEff::keys, ListBase::last, BuildEff::len, BuildModifierData::length, WaveEff::lifetime, WaveModifierData::lifetime, link_glob_list(), link_list(), bController::links, bSensor::links, Object::mat, Object::matbits, MEM_callocN(), MEM_freeN(), FileData::memfile, Object::mode, modifier_new(), modifier_unique_name(), Object::modifiers, Object::mpath, WaveEff::narrow, WaveModifierData::narrow, newdataadr(), bActuator::next, bController::next, bSensor::next, bProperty::next, PartEff::next, next, NULL, OB_FROMGROUP, OB_MODE_EDIT, OB_MODE_PARTICLE_EDIT, HookModifierData::object, ObHook::parent, ObHook::parentinv, HookModifierData::parentinv, Object::particlesystem, Object::pc_ids, Object::pd, bProperty::poin, SoftBody::pointcache, Object::pose, Object::prop, SoftBody::ptcaches, BuildModifierData::randomize, ROT_MODE_MAX, ROT_MODE_MIN, Object::rotmode, SoftBody::scratch, Object::sculpt, BuildModifierData::seed, Object::sensors, BuildEff::sfra, Object::soft, WaveEff::speed, WaveModifierData::speed, BuildModifierData::start, WaveEff::startx, WaveModifierData::startx, WaveModifierData::starty, Object::state, bController::state_mask, SWITCH_INT, test_pointer_array(), WaveEff::timeoffs, WaveModifierData::timeoffs, HookModifierData::totindex, ObHook::totindex, SoftBody::totkey, PartEff::type, WaveEff::width, and WaveModifierData::width.

Referenced by read_libblock().

static PackedFile* direct_link_packedfile ( FileData fd,
PackedFile oldpf 
) [static]

Definition at line 1673 of file readfile.c.

References PackedFile::data, newdataadr(), and pf.

Referenced by direct_link_image(), direct_link_sound(), and direct_link_vfont().

static void direct_link_paint ( FileData fd,
Paint **  paint 
) [static]

Definition at line 4808 of file readfile.c.

References newdataadr().

Referenced by direct_link_scene().

static void direct_link_partdeflect ( PartDeflect pd) [static]

Definition at line 3446 of file readfile.c.

References NULL, and PartDeflect::rng.

Referenced by direct_link_object(), and direct_link_particlesettings().

static void direct_link_particlesettings ( FileData fd,
ParticleSettings part 
) [static]
static void direct_link_particlesystems ( FileData fd,
ListBase particles 
) [static]
static void direct_link_pointcache ( FileData fd,
PointCache cache 
) [static]
static void direct_link_pointcache_list ( FileData fd,
ListBase ptcaches,
PointCache **  ocache,
int  force_disk 
) [static]
static void direct_link_pose ( FileData fd,
bPose pose 
) [static]
static PreviewImage* direct_link_preview_image ( FileData fd,
PreviewImage old_prv 
) [static]
static void direct_link_region ( FileData fd,
ARegion ar,
int  spacetype 
) [static]
static void direct_link_scene ( FileData fd,
Scene sce 
) [static]

Definition at line 4814 of file readfile.c.

References Editing::act_seq, Scene::adt, StripProxy::anim, RenderData::avicodecdata, Scene::basact, Scene::base, QuicktimeCodecData::cdParms, Strip::color_balance, Strip::crop, Scene::customdata_mask_modal, Scene::dagisvalid, direct_link_animdata(), direct_link_keyingsets(), direct_link_nodetree(), direct_link_paint(), Strip::done, Scene::ed, Sequence::effectdata, FD_FLAGS_SWITCH_ENDIAN, RenderData::ffcodecdata, ListBase::first, Sequence::flag, FileData::flags, Scene::fps_info, SpeedControlVars::frameMap, Scene::id, IDP_DirectLinkProperty(), ToolSettings::imapaint, Scene::keyingsets, Scene::lay_updated, RenderData::layers, link_list(), link_recurs_seq(), AviCodecData::lpFormat, AviCodecData::lpParms, Scene::markers, Editing::metastack, newdataadr(), MetaStack::next, Scene::nodetree, NULL, Scene::obedit, MetaStack::oldbasep, ParticleEditSettings::paintcursor, ImagePaintSettings::paintcursor, MetaStack::parseq, ToolSettings::particle, Sequence::plugin, FFMpegCodecData::properties, Strip::proxy, RenderData::qtcodecdata, Scene::r, ToolSettings::sculpt, Sequence::seq1, Sequence::seq2, Sequence::seq3, SEQ_BEGIN, SEQ_EFFECT, SEQ_EFFECT_NOT_LOADED, SEQ_END, SEQ_HD_SOUND, SEQ_IMAGE, SEQ_MOVIE, SEQ_RAM_SOUND, SEQ_SPEED, SEQ_USE_COLOR_BALANCE, SEQ_USE_CROP, SEQ_USE_PROXY, SEQ_USE_TRANSFORM, Sequence::seqbase, Editing::seqbase, Editing::seqbasep, sound_create_scene(), Scene::stats, Sequence::strip, Strip::stripdata, Scene::theDag, Scene::toolsettings, Strip::transform, Scene::transform_spaces, Sequence::type, ID::us, ToolSettings::vpaint, and ToolSettings::wpaint.

Referenced by read_libblock().

static void direct_link_screen ( FileData fd,
bScreen sc 
) [static]

Definition at line 5586 of file readfile.c.

References ScrArea::actionzones, SpaceNla::ads, SpaceIpo::ads, View3D::afterdraw_transp, View3D::afterdraw_xray, View3D::afterdraw_xraytransp, bScreen::areabase, View3D::bgpicbase, BLI_addtail(), BLI_remlink(), SpaceTime::caches, bScreen::context, SpaceImage::cumap, TreeStore::data, direct_link_curvemapping(), direct_link_gpencil(), direct_link_region(), View3D::drawtype, bScreen::edgebase, SpaceFile::files, ListBase::first, View3D::flag, SpaceFile::folders_next, SpaceFile::folders_prev, SpaceIpo::ghostCurves, SpaceSeq::gpd, SpaceLogic::gpd, SpaceNode::gpd, SpaceImage::gpd, bScreen::handler, ScrArea::handlers, SpaceConsole::history, SpaceImage::iuser, BGpic::iuser, ListBase::last, SpaceFile::layout, ConsoleLine::len, ConsoleLine::len_alloc, ConsoleLine::line, link_list(), View3D::localvd, bScreen::mainwin, MEM_callocN(), MEM_freeN(), newdataadr(), ConsoleLine::next, BGpic::next, SpaceLink::next, ARegion::next, ScrArea::next, ScrEdge::next, NULL, OB_RENDER, OB_WIRE, Scopes::ok, ImageUser::ok, SpaceFile::op, SpaceFile::params, SpaceButs::path, View3D::properties_storage, SpaceLink::regionbase, ScrArea::regionbase, bScreen::regionbase, ImageUser::scene, SpaceImage::scopes, SCREEN_HANDLER_VERSE, SCREEN_MAXHANDLER, SpaceConsole::scrollback, SO_TREESTORE_CLEANUP, SPACE_BUTS, SPACE_CONSOLE, SPACE_FILE, SPACE_IMAGE, SPACE_INFO, SPACE_IPO, SPACE_LOGIC, SPACE_NLA, SPACE_NODE, SPACE_OUTLINER, SPACE_SEQ, SPACE_TIME, SPACE_VIEW3D, ScrArea::spacedata, SpaceLink::spacetype, SpaceInfo::spacetype, ScrArea::spacetype, SpaceOops::storeflag, bScreen::subwinactive, bScreen::swap, SpaceButs::texuser, TreeStore::totelem, SpaceOops::treestore, ScrArea::type, TreeStore::usedelem, ScrArea::v1, ScrEdge::v1, ScrArea::v2, ScrEdge::v2, ScrArea::v3, V3D_INVALID_BACKBUF, ScrArea::v4, Scopes::vecscope, bScreen::vertbase, view3d_split_250(), Scopes::waveform_1, Scopes::waveform_2, and Scopes::waveform_3.

Referenced by read_libblock().

static void direct_link_script ( FileData UNUSEDfd,
Script script 
) [static]

Definition at line 1664 of file readfile.c.

References Script::id, SCRIPT_SET_NULL, and ID::us.

Referenced by read_libblock().

static void direct_link_sound ( FileData fd,
bSound sound 
) [static]
static void direct_link_speaker ( FileData fd,
Speaker spk 
) [static]

Definition at line 5918 of file readfile.c.

References Speaker::adt, direct_link_animdata(), and newdataadr().

Referenced by read_libblock().

static void direct_link_text ( FileData fd,
Text text 
) [static]
static void direct_link_texture ( FileData fd,
Tex tex 
) [static]
static void direct_link_vfont ( FileData fd,
VFont vf 
) [static]

Definition at line 2880 of file readfile.c.

References VFont::data, direct_link_packedfile(), NULL, and VFont::packedfile.

Referenced by read_libblock().

static void direct_link_windowmanager ( FileData fd,
wmWindowManager wm 
) [static]
static void direct_link_world ( FileData fd,
World wrld 
) [static]
static void do_version_bone_head_tail_237 ( Bone bone) [static]
static void do_version_bone_roll_256 ( Bone bone) [static]
static void do_version_constraints_radians_degrees_250 ( ListBase lb) [static]
static void do_version_free_effect_245 ( Effect eff) [static]

Definition at line 7175 of file readfile.c.

References EFF_PARTICLE, PartEff::keys, MEM_freeN(), and Effect::type.

Referenced by do_version_free_effects_245().

static void do_version_free_effects_245 ( ListBase lb) [static]

Definition at line 7185 of file readfile.c.

References BLI_remlink(), do_version_free_effect_245(), and ListBase::first.

Referenced by do_versions().

static PartEff* do_version_give_parteff_245 ( Object ob) [static]

Definition at line 7164 of file readfile.c.

References EFF_PARTICLE, PartEff::next, NULL, and PartEff::type.

Referenced by do_versions(), and expand_object().

static void do_version_mdef_250 ( Main main) [static]
static void do_version_mtex_factor_2_50 ( MTex **  mtex_array,
short  idtype 
) [static]
static void do_version_ntree_242_2 ( bNodeTree ntree) [static]
static void do_version_ntree_tex_mapping_260 ( void *  UNUSEDdata,
ID UNUSEDid,
bNodeTree ntree 
) [static]
static void do_version_old_trackto_to_constraints ( Object ob) [static]
static void do_versions ( FileData fd,
Library lib,
Main main 
) [static]

Definition at line 7576 of file readfile.c.

References MCol::a, ParticleSettings::acc, bActionActuator::act, ACT_ACTION, ACT_ADD_OBJECT, ACT_CAMERA, ACT_CONST_LOCAL, ACT_CONST_TYPE_DIST, ACT_CONSTRAINT, ACT_DROT_LOCAL, ACT_EDIT_OBJECT, ACT_EDOB_ADD_OBJECT, ACT_EDOB_END_OBJECT, ACT_END_OBJECT, ACT_IPO, ACT_IPO_FROM_PROP, ACT_MESSAGE, ACT_OBJECT, ACT_SHAPEACTION, ACT_SND_3D_SOUND, ACT_SOUND, ACT_STEERING, ACT_TORQUE_LOCAL, bActionStrip::actend, AnimData::action, Main::action, bActionStrip::actstart, ACTSTRIP_USESTRIDE, Object::actuators, Lamp::adapt_thresh, Material::adapt_thresh_mir, Material::adapt_thresh_tra, Material::add, Brush::add_col, KeyBlock::adrcode, Object::adt, Tex::afmax, RecastData::agentheight, RecastData::agentmaxclimb, RecastData::agentmaxslope, RecastData::agentradius, BPoint::alfa, BezTriple::alfa, View2D::align, SpaceButs::align, UnifiedPaintSettings::alpha, Material::alpha, Brush::alpha, alphasort_version_246(), Material::amb, World::ambr, Material::ang, GameDome::angle, bObjectActuator::angularvelocity, Image::animspeed, animviz_settings_init(), Material::aniso_gloss_mir, Object::anisotropicFriction, World::ao_adapt_thresh, World::ao_approx_error, World::ao_env_energy, World::ao_indirect_bounces, World::ao_samp_method, World::aobias, World::aocolor, World::aodist, World::aoenergy, World::aomix, World::aomode, World::aosamp, Lamp::area_size, Lamp::area_sizey, Lamp::area_sizez, bScreen::areabase, ARM_DEF_B_BONE_REST, ARM_DEF_VGROUP, ARM_DRAWXRAY, ARM_PATH_ACFRA, ARM_PATH_FNUMS, ARM_PATH_HEADS, ARM_PATH_KFNOS, ARM_PATH_KFRAS, Main::armature, MovieClip::aspx, Image::aspx, MovieClip::aspy, Image::aspy, Lamp::atm_distance_factor, Lamp::atm_extinction_factor, Lamp::atm_inscattering_factor, Lamp::atm_turbidity, bSound::attenuation, GameData::attrib, Scene::audio, FFMpegCodecData::audio_channels, FFMpegCodecData::audio_codec, FFMpegCodecData::audio_mixrate, AUDIO_SCRUB, FFMpegCodecData::audio_volume, UserDef::autokey_mode, ToolSettings::autokey_mode, SpaceNla::autosnap, SpaceIpo::autosnap, SpaceAction::autosnap, bPose::avs, Object::avs, bCameraActuator::axis, Material::b, Lamp::backscattered_light, RenderData::bake_filter, RenderData::bake_flag, RenderData::bake_mode, RenderData::bake_osa, Scene::base, ParticleSettings::bb_size, FCurve::bezt, Nurb::bezt, Tex::bfac, RenderData::bg_stamp, View3D::bgpicbase, BKE_area_region_free(), BKE_ptcache_add(), BKE_reportf_wrap(), BKE_spacetype_from_id(), BKE_tracking_new_object(), Sequence::blend_mode, Sequence::blend_opacity, BLI_addhead(), BLI_addtail(), BLI_countlist(), BLI_findindex(), BLI_freelinkN(), BLI_insertlinkbefore(), BLI_join_dirfile(), BLI_path_abs(), BLI_snprintf(), BLI_strncpy(), BLI_strnlen(), Key::block, RenderData::blurfac, ParticleSettings::boids, ToolSettings::bone_sketching, bone_version_238(), bone_version_239(), bArmature::bonebase, RenderData::border, Object::boundtype, Nurb::bp, Main::brush, ParticleEditSettings::brush, BRUSH_SPACE_ATTEN, ParticleEditSettings::brushtype, Lamp::buffers, MovieClipProxy::build_size_flag, MovieClipProxy::build_tc_flag, View3D::bundle_drawtype, View3D::bundle_size, BUTS_ANIM, BUTS_CONSTRAINT, BUTS_EDIT, BUTS_FPAINT, BUTS_GAME, BUTS_LAMP, BUTS_MAT, BUTS_RADIO, BUTS_RENDER, BUTS_SCRIPT, BUTS_TEX, BUTS_WORLD, SpaceTime::cache_display, calc_lat_fudu(), CAM_ORTHO, CAM_PANORAMA, CAM_SHOWPASSEPARTOUT, CAM_SHOWTITLESAFE, MovieTracking::camera, Scene::camera, Main::camera, DynamicPaintModifierData::canvas, RecastData::cellheight, RecastData::cellsize, bPose::chanbase, ParticleSettings::child_nbr, ToolSettings::clean_thresh, ParticleSettings::clength, CurveMapping::clipr, CurveMapping::cm, CMP_NODE_BLUR, CMP_NODE_COLORBALANCE, MVert::co, Tex::coba, Object::col, TFace::col, Object::collision_boundtype, DynamicPaintSurface::color_dry_threshold, RenderData::color_mgt_flag, Lamp::compressthresh, Sound3D::cone_inner_angle, Sound3D::cone_outer_angle, bPoseChannel::constinv, Object::constinv, constraint_get_typeinfo(), CONSTRAINT_IK_POS, CONSTRAINT_IK_ROT, CONSTRAINT_IK_STRETCH, CONSTRAINT_SPACE_LOCAL, CONSTRAINT_TYPE_ACTION, CONSTRAINT_TYPE_FOLLOWPATH, CONSTRAINT_TYPE_KINEMATIC, CONSTRAINT_TYPE_LOCLIKE, CONSTRAINT_TYPE_LOCLIMIT, CONSTRAINT_TYPE_MINMAX, CONSTRAINT_TYPE_OBJECTSOLVER, CONSTRAINT_TYPE_PYTHON, CONSTRAINT_TYPE_ROTLIKE, CONSTRAINT_TYPE_TRACKTO, bPoseChannel::constraints, Object::constraints, CONTEXT_EDITING, CONTEXT_LOGIC, CONTEXT_OBJECT, CONTEXT_SCENE, CONTEXT_SHADING, PixelFormat::convert(), copy_v3_v3(), ToolSettings::cornertype, ParticleSettings::courant_target, Brush::crease_pinch_factor, CU_2D, CU_PATH, CU_TYPE, CUMA_EXTEND_EXTRAPOLATE, View2D::cur, Text::curc, Lamp::curfalloff, Text::curl, Brush::curve, Main::curve, CURVE_PRESET_LINE, CURVE_PRESET_SMOOTH, curvemap_reset(), CURVEMAP_SLOPE_POSITIVE, curvemapping_add(), curvemapping_changed(), curvemapping_initialize(), bAction::curves, bNode::custom1, customdata_version_242(), customdata_version_243(), ImageUser::cycl, PartEff::damp, ParticleSettings::dampfac, bCameraActuator::damping, Object::damping, Material::darkness, ColorBand::data, KeyBlock::data, Object::data, bConstraint::data, data, bProperty::data, bSensor::data, bActuator::data, Lattice::def, MovieTrackingSettings::default_minimum_correlation, default_mtex(), MovieTrackingSettings::default_pattern_size, MovieTrackingSettings::default_pyramid_levels, MovieTrackingSettings::default_search_size, DEFAULT_SENSOR_HEIGHT, DEFAULT_SENSOR_WIDTH, MovieTrackingSettings::default_tracker, CurveModifierData::defaxis, Object::defbase, SoftBody::defgoal, defgroup_find_name(), defgroup_unique_name(), ArmatureModifierData::deformflag, bArmature::deformflag, ToolSettings::degr, VolumeSettings::density, VolumeSettings::density_scale, GameData::depth, VolumeSettings::depth_cutoff, RecastData::detailsampledist, RecastData::detailsamplemaxerror, StripProxy::dir, Strip::dir, ParticleSettings::disp, PartEff::disp, Tex::dist_amount, Material::dist_mir, bSound::distance, AudioData::distance_model, do_version_bone_head_tail_237(), do_version_bone_roll_256(), do_version_constraints_radians_degrees_250(), do_version_free_effects_245(), do_version_give_parteff_245(), do_version_mdef_250(), do_version_mtex_factor_2_50(), do_version_ntree_242_2(), do_version_ntree_tex_mapping_260(), do_version_old_trackto_to_constraints(), do_versions_gpencil_2_50(), do_versions_image_settings_2_60(), do_versions_nodetree_convert_angle(), do_versions_nodetree_default_value(), do_versions_nodetree_dynamic_sockets(), do_versions_nodetree_image_default_alpha_output(), do_versions_nodetree_socket_auto_hidden_flags_2_62(), do_versions_nodetree_socket_use_flags_2_62(), do_versions_seq_unique_name_all_strips(), do_versions_windowmanager_2_50(), SmokeModifierData::domain, GameData::dome, AudioData::doppler_factor, ToolSettings::doublimit, Object::dquat, ParticleSettings::draw, ParticleSettings::draw_as, ParticleSettings::draw_col, ParticleSettings::draw_line, ParticleSettings::draw_step, Mesh::drawflag, View3D::drawtype, bObjectActuator::drot, Object::drotAngle, Object::drotAxis, Object::dscale, Object::dt, Object::dtx, Lattice::du, ParticleSettings::dup_ob, Object::dupend, Object::dupfacesca, Object::dupoff, Object::dupon, Object::dupsta, Lattice::dv, Lattice::dw, Scene::ed, RecastData::edgemaxerror, RecastData::edgemaxlen, ToolSettings::editbutflag, SoftBody::effector_weights, ClothSimSettings::effector_weights, ParticleSettings::effector_weights, SoftBody::efra, ELEM, VolumeSettings::emission, VolumeSettings::emission_col, ParticleEditSettings::emitterdist, eModifierType_Armature, eModifierType_Cloth, eModifierType_Curve, eModifierType_DynamicPaint, eModifierType_Fluidsim, eModifierType_Lattice, eModifierType_Mirror, eModifierType_Multires, eModifierType_Ocean, eModifierType_ParticleSystem, eModifierType_Smoke, eModifierType_Softbody, eModifierType_Solidify, eModifierType_Subsurf, eModifierTypeType_OnlyDeform, Object::empty_drawsize, Object::empty_drawtype, bIpoActuator::end, bActionActuator::end, bActionStrip::end, PartEff::end, ParticleSettings::end, Tex::env, eSubsurfModifierFlag_ControlEdges, eSubsurfModifierFlag_DebugIncr, eSubsurfModifierFlag_Incremental, GameData::exitkey, World::exposure, VoxelData::extend, Tex::extend, ToolSettings::extr_offs, GameData::eyeseparation, PartDeflect::f_noise, fabsf, bSteeringActuator::facingaxis, Material::fadeto_mir, PointDensity::falloff_curve, PointDensity::falloff_speed_scale, Lamp::falloff_type, FCURVE_AUTO_HANDLES, RenderData::ffcodecdata, FFMPEG_MULTIPLEX_AUDIO, RenderData::fg_stamp, Tex::fie_ima, ImageUser::fie_ima, FILE_MAX, FILE_MAXDIR, FileData::fileflags, fill_vn_fl(), Tex::filtersize, RenderData::filtertype, ListBase::first, UnifiedPaintSettings::flag, bIpoActuator::flag, bActionActuator::flag, FCurve::flag, CurveMap::flag, SolidifyModifierData::flag, bNodeTree::flag, Brush::flag, FluidsimSettings::flag, PartDeflect::flag, PhysicsSettings::flag, Object::flag, GameData::flag, Nurb::flag, bSoundActuator::flag, bConstraintActuator::flag, bActionStrip::flag, ParticleEditSettings::flag, ParticleSettings::flag, PartEff::flag, ParticleSystem::flag, bLocateLikeConstraint::flag, ImageUser::flag, PointCache::flag, bConstraint::flag, MirrorModifierData::flag, Image::flag, bRotateLikeConstraint::flag, bMinMaxConstraint::flag, Camera::flag, bKinematicConstraint::flag, Lattice::flag, Curve::flag, bArmature::flag, bPose::flag, Sequence::flag, View3D::flag, Tex::flag, AudioData::flag, Mesh::flag, bObjectActuator::flag, ID::flag, View3D::flag2, bLocLimitConstraint::flag2, DynamicPaintSurface::flags, Text::flags, SmokeFlowSettings::flags, SmokeDomainSettings::flags, FFMpegCodecData::flags, SubsurfModifierData::flags, bSound::flags, Material::flareboost, Material::flaresize, SmokeModifierData::flow, FLT_MAX, Object::fluidsimSettings, FluidsimSettings::fmd, FO_BUILTIN_NAME, PartEff::force, PartDeflect::forcefield, bObjectActuator::forceloc, bObjectActuator::forcerot, bNodeTreeType::foreach_nodetree, Object::formfactor, RenderData::framapto, RenderData::frame_step, RenderData::framelen, bIpoActuator::frameProp, bActionActuator::frameProp, Tex::frames, ImageUser::frames, GameData::framing, bSensor::freq, GameData::freqplay, Material::fresnel_mir, Material::fresnel_mir_i, Material::fresnel_tra, Material::fresnel_tra_i, ParticleSettings::from, RenderData::frs_sec, RenderData::frs_sec_base, FluidsimModifierData::fss, Lattice::fu, Lattice::fv, Lattice::fw, Material::g, G, G_DEBUG, G_FILE_ENABLE_ALL_FRAMES, G_FILE_GAME_MAT, G_FILE_GAME_MAT_GLSL, G_FILE_GLSL_NO_EXTRA_TEX, G_FILE_GLSL_NO_NODES, G_FILE_GLSL_NO_RAMPS, G_FILE_GLSL_NO_SHADERS, G_FILE_GLSL_NO_SHADOWS, G_FILE_IGNORE_DEPRECATION_WARNINGS, G_FILE_SHOW_DEBUG_PROPS, G_FILE_SHOW_FRAMERATE, G_FILE_SHOW_PHYSICS, GAME_DISPLAY_LISTS, GAME_ENABLE_ALL_FRAMES, GAME_GLSL_NO_EXTRA_TEX, GAME_GLSL_NO_NODES, GAME_GLSL_NO_RAMPS, GAME_GLSL_NO_SHADERS, GAME_GLSL_NO_SHADOWS, GAME_IGNORE_DEPRECATION_WARNINGS, GAME_MAT_GLSL, GAME_MAT_MULTITEX, GAME_MAT_TEXFACE, GAME_PLAYER_FULLSCREEN, GAME_SHOW_DEBUG_PROPS, GAME_SHOW_FRAMERATE, GAME_SHOW_PHYSICS, Object::gameflag, RenderData::gauss, Image::gen_type, Image::gen_x, Image::gen_y, get_ob_property(), Tex::gfac, bAnimVizSettings::ghost_ac, bAnimVizSettings::ghost_bc, bAnimVizSettings::ghost_ef, bAnimVizSettings::ghost_sf, bAnimVizSettings::ghost_step, bAnimVizSettings::ghost_type, GHOST_TYPE_NONE, bArmature::ghostef, bArmature::ghostep, bArmature::ghostsf, bArmature::ghostsize, bArmature::ghosttype, EffectorWeights::global_gravity, Material::gloss_mir, Material::gloss_tra, Scene::gm, GPROP_TIME, SoftBody::grav, ClothSimSettings::gravity, PhysicsSettings::gravity, GameData::gravity, View3D::gridflag, View3D::gridlines, View3D::gridsubdiv, PartEff::group, Main::group, BezTriple::h1, BezTriple::h2, ParticleSettings::hair_step, HD_AUTO, HD_AUTO_ANIM, bConstraint::headtail, Brush::height, Histogram::height, Lamp::horizon_brightness, World::horr, i, Text::id, MovieClip::id, bAction::id, Brush::id, ParticleSettings::id, Group::id, Curve::id, bNodeTree::id, Key::id, Lattice::id, bArmature::id, Camera::id, Lamp::id, World::id, Image::id, VFont::id, bSound::id, bScreen::id, Mesh::id, Object::id, Material::id, Scene::id, Tex::id, ID_LA, ID_MA, ID_OB, ID_WO, idproperties_fix_group_lengths(), if(), Tex::ima, IMA_DO_PREMUL, IMA_FIELDS, IMA_OLD_PREMUL, IMA_SRC_FILE, IMA_SRC_MOVIE, IMA_SRC_VIEWER, IMA_STD_FIELD, IMA_TYPE_COMPOSITE, IMA_TYPE_IMAGE, IMA_TYPE_R_RESULT, Tex::imaflag, Main::image, RenderData::images, ToolSettings::imapaint, IMB_PROXY_25, IMB_TC_FREE_RUN, IMB_TC_INTERPOLATED_REC_DATE_FREE_RUN, IMB_TC_RECORD_RUN, IMB_TC_RECORD_RUN_NO_GAPS, Object::inertia, DynamicPaintSurface::influence_scale, INFO_RPT_OP, SoftBody::inpush, SoftBody::inspring, SoftBody::interval, bSensor::invert, bObjectSolverConstraint::invmat, FluidsimSettings::ipo, Main::ipo, IS_EQ, IS_EQF, is_zero_v3(), is_zero_v4(), BGpic::iuser, Tex::iuser, ToolSettings::jointrilimit, Lamp::k, View2D::keepofs, View2D::keeptot, View2D::keepzoom, Curve::key, Lattice::key, Mesh::key, Main::key, bKeyboardSensor::key, SoftBody::keys, ParticleSettings::kink_amp_clump, LA_AREA, LA_FALLOFF_INVLINEAR, LA_FALLOFF_SLIDERS, LA_QUAD, LA_SAMP_CONSTANT, LA_SAMP_HALTON, Main::lamp, Main::latt, Scene::lay, Scene::layact, Group::layer, bArmature::layer, RenderData::layers, SceneRenderLayer::layflag, TextLine::len, len_v3(), length(), Camera::lens, GameData::levelHeight, SubsurfModifierData::levels, SpaceText::lheight, ID::lib, LIB_NEEDLINK, FileData::libmap, Main::library, PartEff::lifetime, ParticleSettings::lifetime, NodeColorBalance::lift, bPoseChannel::limitmax, bPoseChannel::limitmin, TextLine::line, bObjectActuator::linearvelocity, Text::lines, bEditObjectActuator::linVelocity, bActionConstraint::local, bEditObjectActuator::localflag, LOCLIKE_TIP, MultiresModifierData::lvl, Object::m_contactProcessingThreshold, M_PI, MA_APPROX_OCCLUSION, MA_HALO, MA_NORMAP_TANG, MA_RAMP_ADD, MA_RAYMIR_FADETOSKY, MA_RAYTRANSP, MA_SHADBUF, MA_TANGENT_STR, MA_TRACEBLE, MA_TRANSP, MA_TYPE_HALO, MA_TYPE_VOLUME, MA_TYPE_WIRE, MA_VOL_PRECACHESHADING, MA_VOL_SHADE_SHADED, MA_VOL_STEP_RANDOMIZED, MA_WIRE, MA_ZTRANSP, AudioData::main, SpaceSeq::mainb, SpaceButs::mainb, make_edges(), map_223_keybd_code_to_224_keybd_code(), MAP_ALPHA, MAP_COL, MAP_REF, MAP_SPEC, MTex::mapto, Object::margin, Object::mass, PartEff::mat, Object::mat, Main::mat, SolidifyModifierData::mat_ofs_rim, Object::matbits, Material::material_type, GameData::matmode, MAX2, Sound3D::max_distance, Sound3D::max_gain, bSound::max_gain, MAX_MTEX, GameData::maxlogicstep, World::maxlogicstep, GameData::maxphystep, World::maxphystep, View2D::maxzoom, Main::mball, RenderData::mblur_samples, Mesh::mcol, ME_DRAWCREASES, ME_DRAWEDGES, ME_DRAWFACES, ME_OPT_EDGES, ME_SMESH, ME_SUBSURF, Mesh::medge, MEM_callocN(), MEM_dupallocN(), MEM_freeN(), Main::mesh, mesh_calc_normals(), mesh_strip_loose_faces(), Mesh::mface, Tex::mg_gain, Tex::mg_H, Tex::mg_lacunarity, Tex::mg_octaves, Tex::mg_offset, View2D::min, MIN2, Sound3D::min_gain, bSound::min_gain, MovieTrackingTrack::minimum_correlation, MINMAX_STICKY, View2D::minzoom, Material::mirr, AudioData::mixrate, MOD_DPAINT_USE_DRYING, MOD_MIR_AXIS_X, MOD_MIR_AXIS_Y, MOD_MIR_AXIS_Z, MOD_SMOKE_FLOW_INITVELOCITY, MOD_SMOKE_TYPE_DOMAIN, MOD_SMOKE_TYPE_FLOW, MOD_SOLIDIFY_RIM_MATERIAL, Object::mode, GameData::mode, GameDome::mode, SpaceAction::mode, Lamp::mode, World::mode, ModifierData::mode, bRaySensor::mode, bCollisionSensor::mode, TFace::mode, Material::mode, RenderData::mode, SubsurfModifierData::modifier, modifier_new(), modifier_unique_name(), Object::modifiers, modifiers_findByType(), modifierType_getInfo(), MOTIONPATH_BAKE_HEADS, MOTIONPATH_TYPE_ACFRA, MOTIONPATH_VIEW_FNUMS, MOTIONPATH_VIEW_KFNOS, MOTIONPATH_VIEW_KFRAS, Main::movieclip, VolumeSettings::ms_diff, VolumeSettings::ms_intensity, VolumeSettings::ms_spread, Brush::mtex, World::mtex, Lamp::mtex, Material::mtex, MTEX_3TAP_BUMP, MTEX_BUMP_OBJECTSPACE, MTEX_NSPACE_TANGENT, mul_v3_fl(), multires_load_old(), multires_load_old_250(), Mesh::mvert, Tex::nabla, bActionActuator::name, Main::name, StripElem::name, ModifierData::name, bDeformGroup::name, ID::name, Image::name, KeyBlock::name, VFont::name, bIpoActuator::name, newlibadr(), newlibadr_us(), bSound::newpackedfile, DynamicPaintSurface::next, TextLine::next, MovieTrackingObject::next, MovieTrackingTrack::next, FCurve::next, ARegion::next, bNode::next, Base::next, bActionStrip::next, ParticleSystem::next, bDeformGroup::next, BGpic::next, Nurb::next, SceneRenderLayer::next, KeyBlock::next, ModifierData::next, Bone::next, bPoseChannel::next, bConstraint::next, bProperty::next, bSensor::next, bActuator::next, ScrArea::next, SpaceLink::next, ID::next, NODE_GROUP, bNodeTree::nodes, World::nodetree, Lamp::nodetree, Tex::nodetree, Material::nodetree, Main::nodetree, Scene::nodetree, bNodeTree::nodetype, nodeUniqueName(), ImagePaintSettings::normal_angle, ToolSettings::normalsize, MTex::normapspace, PartEff::normfac, ParticleSettings::normfac, Tex::ns_outscale, NTREE_DO_VERSIONS_GROUP_EXPOSE, NTREE_SHADER, NTREE_UPDATE, ntree_version_241(), ntree_version_242(), ntree_version_245(), ntreeGetType(), NULL, Curve::nurb, bAddObjectActuator::ob, bEditObjectActuator::ob, OB_ACTOR, OB_ANISOTROPIC_FRICTION, OB_ARMATURE, OB_ARROWS, OB_BOUNDS, OB_CAMERA, OB_CHILD, OB_COLLISION, OB_COLLISION_RESPONSE, OB_CURVE, OB_DO_FH, OB_DRAWXRAY, OB_DUPLIPARTS, OB_DUPLIVERTS, OB_DYNAMIC, OB_FLUIDSIM_ACTIVE, OB_FLUIDSIM_OVERRIDE_TIME, OB_FLUIDSIM_PARTICLE, OB_FONT, OB_GHOST, OB_LATTICE, OB_MATERIAL, OB_MESH, Brush::ob_mode, OB_MODE_ALL_PAINT, OB_MODE_POSE, OB_PLAINAXES, OB_POSX, OB_POSY, OB_RECALC_DATA, OB_RECALC_OB, OB_RECALC_TIME, OB_RIGID_BODY, OB_ROT_FH, OB_SB_ENABLE, OB_SB_POSTDEF, OB_SOFT_BODY, OB_SOLID, OB_TEXTURE, PartEff::obfac, ParticleSettings::obfac, CurveModifierData::object, LatticeModifierData::object, Base::object, ArmatureModifierData::object, Main::object, MovieTrackingSettings::object_distance, MovieTracking::objects, GameData::occlusionRes, World::occlusionRes, OceanModifierData::oceancache, RenderData::ocres, Tex::offset, ImageUser::offset, oldnewmap_insert(), ParticleSettings::omat, PartEff::omat, bKinematicConstraint::orientweight, Camera::ortho_scale, RenderData::osa, bActuator::otype, bConstraint::ownspace, bSound::packedfile, PAF_BSPLINE, PAF_DIED, PAF_EDISTR, PAF_FACE, PAF_SHOWE, PAF_STATIC, PAF_TRAND, PAF_UNBORN, PAF_VECT, Material::param, PARCURVE, Object::parent, PAROBJECT, PARSKEL, ParticleSystem::part, PART_DIED, PART_DRAW_AXIS, PART_DRAW_COL_MAT, PART_DRAW_DOT, PART_DRAW_EMITTER, PART_DRAW_GR, PART_DRAW_HALO, PART_DRAW_LINE, PART_DRAW_MAT_COL, PART_DRAW_OB, PART_DRAW_PATH, PART_DRAW_REND, PART_DRAW_ROTATE_OB, PART_DRAW_VEL_LENGTH, PART_EDISTR, PART_FLUID, PART_FROM_FACE, PART_HAIR, PART_HAIR_BSPLINE, PART_HAIR_REGROW, PART_ROT_VEL, PART_TIME_AUTOSF, PART_TRAND, PART_UNBORN, ToolSettings::particle, Main::particle, Object::particlesystem, Object::partype, Camera::passepartalpha, SceneRenderLayer::passflag, bAnimVizSettings::path_ac, bAnimVizSettings::path_bakeflag, bAnimVizSettings::path_bc, bAnimVizSettings::path_ef, ParticleSettings::path_end, bAnimVizSettings::path_sf, bAnimVizSettings::path_step, bAnimVizSettings::path_type, bAnimVizSettings::path_viewflag, bArmature::pathac, bArmature::pathbc, bArmature::pathef, bArmature::pathflag, bArmature::pathsf, bArmature::pathsize, Tex::pd, Object::pd, PE_BRUSH_CUT, PE_BRUSH_NONE, PE_DEFLECT_EMITTER, PE_KEEP_LENGTHS, PE_LOCK_FIRST, PE_TOT_BRUSH, NodeBlurData::percentx, NodeBlurData::percenty, PFIELD_DO_LOCATION, PFIELD_PLANAR, PFIELD_SHAPE_PLANE, PFIELD_SHAPE_SURFACE, PFIELD_SURFACE, PFIELD_WIND, PHYS_GLOBAL_GRAVITY, Scene::physics_settings, SoftBody::physics_speed, GameData::physicsEngine, World::physicsEngine, GameData::physubstep, World::physubstep, PIL_check_seconds_timer(), Sequence::pitch, BoidSettings::pitch, bSound::pitch, bSoundActuator::pitch, MovieTrackingCamera::pixel_aspect, Brush::plane_trim, GameData::playerflag, Nurb::pntsu, Lattice::pntsu, Nurb::pntsv, Lattice::pntsv, Lattice::pntsw, ClothModifierData::point_cache, ParticleSystem::pointcache, SoftBody::pointcache, Object::pose, POSE_RECALC, Material::pr_lamp, VolumeSettings::precache_resolution, CurveMapping::preset, MultiresLevel::prev, Image::preview, Object::prop, MovieClip::proxy, Strip::proxy, ParticleSystemModifierData::psys, PSYS_CURRENT, PSYS_ENABLED, psys_new_settings(), PSYS_RECALC_REDO, PSYS_VG_DENSITY, PSYS_VG_LENGTH, PSYS_VG_VEL, PTCACHE_BAKED, PTCACHE_DISK_CACHE, ClothModifierData::ptcaches, ParticleSystem::ptcaches, SoftBody::ptcaches, bSensor::pulse, MovieTrackingTrack::pyramid_levels, bKeyboardSensor::qual, bKeyboardSensor::qual2, MovieClipProxy::quality, StripProxy::quality, Object::quat, CBData::r, Material::r, Scene::r, R_BAKE_CLEAR, R_COLOR_MANAGEMENT, R_ENVMAP, R_FILTER_GAUSS, R_GAMMA, R_GAUSS, R_PANORAMA, R_PASSEPARTOUT, R_SSS, R_THREADS, BPoint::radius, BezTriple::radius, Nurb::radius_interp, DynamicPaintSurface::radius_scale, Material::ramp_col, Material::ramp_spec, Material::rampfac_col, Material::rampfac_spec, PartEff::randfac, ParticleSettings::randfac, PartEff::randlife, ParticleSettings::randlife, World::range, bRadarSensor::range, Brush::rate, Material::ray_depth, Material::ray_depth_tra, Lamp::ray_samp, Lamp::ray_samp_method, Lamp::ray_sampy, Lamp::ray_sampz, Object::rdamping, ParticleSystem::recalc, Object::recalc, GameData::recastData, bScreen::redraws_flag, Sound3D::reference_distance, Key::refkey, VolumeSettings::reflection, VolumeSettings::reflection_col, Material::refrac, SpaceLink::regionbase, ScrArea::regionbase, RecastData::regionmergesize, RecastData::regionminsize, ARegion::regiontype, FileData::relabase, ParticleSettings::ren_as, ParticleSettings::ren_child_nbr, ParticleSettings::ren_step, SubsurfModifierData::renderLevels, MultiresModifierData::renderlvl, bActionStrip::repeat, FileData::reports, GameDome::res, GameDome::resbuf, bTrackToConstraint::reserved1, bTrackToConstraint::reserved2, Nurb::resolu, OceanModifierData::resolution, Nurb::resolv, Main::revision, Tex::rfac, RGN_TYPE_PREVIEW, RGN_TYPE_WINDOW, ToolSettings::rings, Material::rms, Sound3D::rolloff_factor, bKinematicConstraint::rootbone, ROT_MODE_EUL, bPoseChannel::rotAxis, Object::rotAxis, ROTLIKE_X, ROTLIKE_Y, ROTLIKE_Z, Object::rotmode, ParticleSettings::rotmode, Material::roughness, SpaceInfo::rpt_mask, RPT_WARNING, SACTCONT_DOPESHEET, SACTSNAP_FRAME, Material::samp_gloss_mir, Material::samp_gloss_tra, SpaceImage::sample_line_hist, Sequence::sat, Tex::saturation, Object::scaflag, MovieTrackingObject::scale, bActionStrip::scale, UnitSettings::scale_length, VolumeSettings::scattering, SCE_LAY_SKY, SCE_LAY_SOLID, SCE_PASS_COMBINED, SCE_PASS_NORMAL, SCE_PASS_VECTOR, SCE_PASS_Z, SCE_SELECT_PATH, SCE_SELECT_VERTEX, RenderData::scemode, Main::scene, scene_add_render_layer(), SpaceClip::scopes, SpaceImage::scopes, scopes_new(), Main::screen, Main::script, View2D::scroll, Brush::sculpt_tool, SCULPT_TOOL_ROTATE, MultiresModifierData::sculptlvl, ImagePaintSettings::seam_bleed, PartDeflect::seed, PartEff::seed, ParticleSystem::seed, ToolSettings::segments, ToolSettings::select_thresh, ParticleEditSettings::selectmode, ToolSettings::selectmode, SENS_ALWAYS, SENS_COLLISION, SENS_KEYBOARD, SENS_RADAR, SENS_RAY, Camera::sensor_x, Camera::sensor_y, Object::sensors, SEQ_BEGIN, SEQ_DRAW_IMG_IMBUF, SEQ_END, SEQ_HD_SOUND, SEQ_IMAGE, SEQ_MAKE_PREMUL, SEQ_MOVIE, SEQ_USE_PROXY_CUSTOM_DIR, SEQ_USE_PROXY_CUSTOM_FILE, SEQ_VIEW_SEQUENCE, Editing::seqbase, Editing::seqbasep, SEQP_BEGIN, sequencer_init_preview_region(), MovieTracking::settings, Tex::sfra, ImageUser::sfra, SoftBody::sfra, Material::shad_alpha, Material::shade_flag, VolumeSettings::shade_type, VolumeSettings::shadeflag, PartDeflect::shape, SoftBody::shearstiff, ClothModifierData::sim_parms, RenderData::simplify_aosss, RenderData::simplify_particles, ParticleSettings::simplify_rate, ParticleSettings::simplify_refsize, RenderData::simplify_shadowsamples, RenderData::simplify_subsurf, ParticleSettings::simplify_transition, ParticleSettings::simplify_viewport, UnifiedPaintSettings::size, Object::size, Brush::size, ParticleBrushData::size, SK_RETARGET_ROLL_VIEW, ToolSettings::skgen_angle_limit, ToolSettings::skgen_correlation_limit, SKGEN_FILTER_EXTERNAL, SKGEN_FILTER_INTERNAL, SKGEN_FILTER_SMART, SKGEN_HARMONIC, ToolSettings::skgen_length_limit, ToolSettings::skgen_length_ratio, ToolSettings::skgen_options, ToolSettings::skgen_postpro, ToolSettings::skgen_postpro_passes, ToolSettings::skgen_resolution, ToolSettings::skgen_retarget_angle_weight, ToolSettings::skgen_retarget_distance_weight, ToolSettings::skgen_retarget_length_weight, ToolSettings::skgen_retarget_roll, SKGEN_SMOOTH, SKGEN_SUB_ANGLE, SKGEN_SUB_CORRELATION, SKGEN_SUB_LENGTH, ToolSettings::skgen_subdivisions, ToolSettings::skgen_symmetry_limit, ToolSettings::skgen_threshold_external, ToolSettings::skgen_threshold_internal, Lamp::sky_exposure, Lamp::skyblendfac, Lamp::skyblendtype, KeyBlock::slidermax, KeyBlock::slidermin, Curve::smallcaps_scale, Brush::smooth_stroke_factor, Brush::smooth_stroke_radius, Mesh::smoothresh, Object::soft, Object::softflag, sort_shape_fix(), Sequence::sound, bSoundActuator::sound, Main::sound, bSoundActuator::sound3D, SOUND_FLAGS_3D, sound_new_file(), Image::source, bConstraintTarget::space, SPACE_ACTION, SPACE_BUTS, SPACE_CLIP, SPACE_IMAGE, SPACE_INFO, SPACE_IPO, SPACE_NLA, SPACE_NODE, SPACE_SEQ, SPACE_TEXT, SPACE_TIME, SPACE_VIEW3D, ScrArea::spacedata, SpaceLink::spacetype, Brush::spacing, Material::specr, AudioData::speed_of_sound, PartEff::speedtex, Lamp::spread, srgb_to_linearrgb_v3_v3(), Material::sss_back, Material::sss_col, Material::sss_colfac, Material::sss_error, Material::sss_front, Material::sss_ior, Material::sss_radius, Material::sss_scale, Material::sss_texfac, bIpoActuator::sta, bActionActuator::sta, PartEff::sta, ParticleSettings::sta, bActionStrip::start, PartEff::staticstep, ParticleBrushData::step, ToolSettings::step, VolumeSettings::stepsize, VolumeSettings::stepsize_type, STEREO_ANAGLYPH, STEREO_DOME, STEREO_ENABLED, STEREO_NOSTEREO, GameData::stereoflag, GameData::stereomode, bMinMaxConstraint::sticky, bNode::storage, str, Material::strand_end, Material::strand_min, Material::strand_sta, ParticleBrushData::strength, Sequence::strip, io_export_cycles_xml::strip(), Strip::stripdata, strlen(), PartEff::stype, Brush::sub_col, SubsurfModifierData::subdivType, Material::subsize, bPythonConstraint::subtarget, bConstraintTarget::subtarget, Main::subversionfile, Lamp::sun_brightness, Lamp::sun_effect_type, Lamp::sun_intensity, Lamp::sun_size, DynamicPaintCanvasSettings::surfaces, SpaceText::tabnumber, bConstraintTarget::tar, bPythonConstraint::tar, bFollowPathConstraint::tar, bPythonConstraint::targets, bPythonConstraint::tarnum, bConstraint::tarspace, MTex::tex, Main::tex, TEX_ANIM5_, TEX_ANIMCYCLIC_, TEX_CHECKER_EVEN, TEX_CHECKER_ODD, TEX_CLIP, TEX_EXTEND, TEX_FIELDS_, TEX_IMAGE, TEX_NODE_OUTPUT, TEX_REPEAT, TEX_STD_FIELD_, TEX_STUCCI, MTex::texflag, Main::text, Brush::texture_overlay_alpha, TF_DYNAMIC, TF_INVISIBLE, Mesh::tface, RenderData::threads, GameData::ticrate, World::ticrate, GameDome::tilt, bAddObjectActuator::time, bEditObjectActuator::time, TIME_ALL_3D_WIN, TIME_ALL_ANIM_WIN, TIME_CACHE_CLOTH, TIME_CACHE_DISPLAY, TIME_CACHE_DYNAMICPAINT, TIME_CACHE_PARTICLES, TIME_CACHE_SMOKE, TIME_CACHE_SOFTBODY, ParticleSettings::time_flag, SmokeDomainSettings::time_scale, Scene::toolsettings, bMessageActuator::toPropName, View2D::tot, ColorBand::tot, ParticleEditSettings::totaddkey, Object::totcol, KeyBlock::totelem, Mesh::totface, PartEff::totkey, SoftBody::totkey, MultiresModifierData::totlvl, PartEff::totpart, ParticleSettings::totpart, ParticleSystem::totpart, ParticleEditSettings::totrekey, FCurve::totvert, Mesh::totvert, MovieClipScopes::track_preview_height, TRACKER_KLT, Object::trackflag, MovieClip::tracking, MovieTracking::tracks, Object::transflag, VolumeSettings::transmission_col, ToolSettings::turn, View3D::twtype, Material::tx_falloff, txt_extended_ascii_as_utf8(), TXT_ISEXT, bConstraintTypeInfo::type, bActionActuator::type, SmokeModifierData::type, Nurb::type, bNode::type, bConstraintActuator::type, FluidsimSettings::type, ParticleSettings::type, Lamp::type, Image::type, Tex::type, ModifierTypeInfo::type, ModifierData::type, Camera::type, Sequence::type, Object::type, bConstraint::type, bProperty::type, bSensor::type, bEditObjectActuator::type, bIpoActuator::type, bActuator::type, U, ToolSettings::unified_paint_settings, Scene::unit, unit_axis_angle(), unit_m4(), unit_qt(), UnifiedPaintSettings::unprojected_radius, Brush::unprojected_radius, ToolSettings::unwrapper, bNodeTree::update, Object::upflag, ID::us, Tex::use_nodes, TFace::uv, UV_SELECT_VERTEX, ToolSettings::uv_selectmode, ToolSettings::uvcalc_cubesize, UVCALC_FILLHOLES, ToolSettings::uvcalc_flag, ToolSettings::uvcalc_mapalign, ToolSettings::uvcalc_mapdir, ToolSettings::uvcalc_radius, ARegion::v2d, V2D_ALIGN_NO_NEG_X, V2D_ALIGN_NO_NEG_Y, V2D_KEEPASPECT, V2D_KEEPTOT_BOUNDS, V2D_LIMITZOOM, V2D_LOCKOFS_X, V2D_LOCKZOOM_X, V2D_LOCKZOOM_Y, V2D_SCROLL_RIGHT, V3D_MANIP_TRANSLATE, V3D_RENDER_OVERRIDE, V3D_RENDER_SHADOW, V3D_SELECT_OUTLINE, V3D_SHOW_FLOOR, V3D_SHOW_RECONSTRUCTION, V3D_SHOW_X, V3D_SHOW_Y, V3D_SHOW_Z, V3D_ZBUF_SELECT, vcol_to_fcol(), Tex::vd, BezTriple::vec, BPoint::vec, SmokeFlowSettings::vel_multi, ClothSimSettings::velocity_smooth, Main::versionfile, PartEff::vertgroup, SoftBody::vertgroup, PartEff::vertgroup_v, ToolSettings::vertices, MultiresLevel::verts, Mesh::verts, RecastData::vertsperpoly, Main::vfont, ParticleSystem::vgroup, ToolSettings::vgroup_weight, SpaceSeq::view, EnvMap::viewscale, Tex::vn_mexp, Tex::vn_w1, Material::vol, AudioData::volume, Sequence::volume, bSoundActuator::volume, bSound::volume, SmokeDomainSettings::vorticity, GameDome::warptext, bKinematicConstraint::weight, where_is_armature(), MTex::which_output, ScrArea::winy, WO_AMB_OCC, WO_AOADDSUB, WO_AODIST, WO_AOMUL, WO_AOPLAIN, WO_AOSAMP_CONSTANT, WO_AOSAMP_HAMMERSLEY, WO_AOSUB, WO_DBVT_CULLING, WO_INDIRECT_LIGHT, WOPHY_BULLET, Main::world, rctf::xmax, rctf::xmin, RenderData::xparts, GameData::xplay, Tex::xrepeat, RenderData::xsch, rctf::ymax, rctf::ymin, RenderData::yparts, GameData::yplay, Tex::yrepeat, RenderData::ysch, and World::zenr.

Referenced by blo_read_file_internal(), and read_libraries().

static void do_versions_gpencil_2_50 ( Main main,
bScreen screen 
) [static]
void do_versions_image_settings_2_60 ( Scene sce)
static void do_versions_nodetree_convert_angle ( bNodeTree ntree) [static]
static void do_versions_nodetree_default_value ( bNodeTree ntree) [static]
static void do_versions_nodetree_dynamic_sockets ( bNodeTree ntree) [static]
static void do_versions_nodetree_image_default_alpha_output ( bNodeTree ntree) [static]
static void do_versions_nodetree_socket_auto_hidden_flags_2_62 ( bNodeTree ntree) [static]
static void do_versions_nodetree_socket_use_flags_2_62 ( bNodeTree ntree) [static]
static void do_versions_seq_unique_name_all_strips ( Scene sce,
ListBase seqbasep 
) [static]
static void do_versions_socket_default_value ( bNodeSocket sock) [static]
static void do_versions_windowmanager_2_50 ( bScreen screen) [static]
static void expand_action ( FileData fd,
Main mainvar,
bAction act 
) [static]
static void expand_animdata ( FileData fd,
Main mainvar,
AnimData adt 
) [static]
static void expand_animdata_nlastrips ( FileData fd,
Main mainvar,
ListBase list 
) [static]
static void expand_armature ( FileData fd,
Main mainvar,
bArmature arm 
) [static]
static void expand_bones ( FileData fd,
Main mainvar,
Bone bone 
) [static]

Definition at line 13748 of file readfile.c.

References Bone::childbase, ListBase::first, and Bone::next.

Referenced by expand_armature().

static void expand_brush ( FileData fd,
Main mainvar,
Brush brush 
) [static]

Definition at line 13568 of file readfile.c.

References Brush::clone, expand_doit(), BrushClone::image, Brush::mtex, and MTex::tex.

Referenced by expand_main().

static void expand_camera ( FileData fd,
Main mainvar,
Camera ca 
) [static]

Definition at line 14005 of file readfile.c.

References Camera::adt, expand_animdata(), and expand_doit().

Referenced by expand_main().

static void expand_constraint_cb ( bConstraint UNUSEDcon,
ID **  idpoin,
void *  userdata 
) [static]
static void expand_constraint_channels ( FileData fd,
Main mainvar,
ListBase chanbase 
) [static]
static void expand_constraints ( FileData fd,
Main mainvar,
ListBase lb 
) [static]
static void expand_curve ( FileData fd,
Main mainvar,
Curve cu 
) [static]
static void expand_doit ( FileData fd,
Main mainvar,
void *  old 
) [static]
static void expand_fcurves ( FileData fd,
Main mainvar,
ListBase list 
) [static]
static void expand_fmodifiers ( FileData fd,
Main mainvar,
ListBase list 
) [static]
static void expand_group ( FileData fd,
Main mainvar,
Group group 
) [static]

Definition at line 13523 of file readfile.c.

References expand_doit(), ListBase::first, Group::gobject, GroupObject::next, and GroupObject::ob.

Referenced by expand_main().

static void expand_ipo ( FileData fd,
Main mainvar,
Ipo ipo 
) [static]

Definition at line 13379 of file readfile.c.

References Ipo::curve, IpoCurve::driver, expand_doit(), ListBase::first, IpoCurve::next, and IpoDriver::ob.

Referenced by expand_main().

static void expand_key ( FileData fd,
Main mainvar,
Key key 
) [static]

Definition at line 13532 of file readfile.c.

References Key::adt, expand_animdata(), and expand_doit().

Referenced by expand_main().

static void expand_keyingsets ( FileData fd,
Main mainvar,
ListBase list 
) [static]
static void expand_lamp ( FileData fd,
Main mainvar,
Lamp la 
) [static]
static void expand_lattice ( FileData fd,
Main mainvar,
Lattice lt 
) [static]

Definition at line 13617 of file readfile.c.

References Lattice::adt, expand_animdata(), expand_doit(), and Lattice::key.

Referenced by expand_main().

static void expand_main ( FileData fd,
Main mainvar 
) [static]
static void expand_material ( FileData fd,
Main mainvar,
Material ma 
) [static]
static void expand_mball ( FileData fd,
Main mainvar,
MetaBall mb 
) [static]

Definition at line 13648 of file readfile.c.

References MetaBall::adt, expand_animdata(), expand_doit(), MetaBall::mat, and MetaBall::totcol.

Referenced by expand_main().

static void expand_mesh ( FileData fd,
Main mainvar,
Mesh me 
) [static]
static void expand_nodetree ( FileData fd,
Main mainvar,
bNodeTree ntree 
) [static]
static void expand_object ( FileData fd,
Main mainvar,
Object ob 
) [static]

Definition at line 13794 of file readfile.c.

References bActionActuator::act, bActionStrip::act, ACT_2DFILTER, ACT_ACTION, ACT_ADD_OBJECT, ACT_ARMATURE, ACT_CAMERA, ACT_EDIT_OBJECT, ACT_MESSAGE, ACT_OBJECT, ACT_PARENT, ACT_PROPERTY, ACT_SCENE, ACT_SHAPEACTION, ACT_SOUND, ACT_STEERING, Object::actuators, Object::adt, bSceneActuator::camera, Object::constraints, CONT_PYTHON, Object::controllers, bActuator::data, bController::data, bSensor::data, data, Object::data, do_version_give_parteff_245(), Object::dup_group, expand_animdata(), expand_constraint_channels(), expand_constraints(), expand_doit(), expand_object_expandModifiers(), expand_pose(), ListBase::first, bMessageSensor::fromObject, Object::gpd, PartEff::group, bActionStrip::ipo, bTouchSensor::ma, Object::mat, bEditObjectActuator::me, Object::modifiers, modifiers_foreachIDLink(), bSteeringActuator::navmesh, bActuator::next, bController::next, bSensor::next, ParticleSystem::next, bActionStrip::next, bParentActuator::ob, bPropertyActuator::ob, bAddObjectActuator::ob, bEditObjectActuator::ob, bCameraActuator::ob, bActionStrip::object, ParticleSystem::part, Object::particlesystem, Object::pd, Object::pose, Object::poselib, Object::proxy, Object::proxy_group, bObjectActuator::reference, bSceneActuator::scene, SENS_MESSAGE, SENS_TOUCH, Object::sensors, bSoundActuator::sound, io_export_cycles_xml::strip(), bSteeringActuator::target, bArmatureActuator::target, PartDeflect::tex, bTwoDFilterActuator::text, bPythonCont::text, bMessageActuator::toObject, Object::totcol, bActuator::type, bController::type, and bSensor::type.

Referenced by expand_main().

static void expand_object_expandModifiers ( void *  userData,
Object UNUSEDob,
ID **  idpoin 
) [static]

Definition at line 13783 of file readfile.c.

References data, and expand_doit().

Referenced by expand_object().

static void expand_particlesettings ( FileData fd,
Main mainvar,
ParticleSettings part 
) [static]
static void expand_pose ( FileData fd,
Main mainvar,
bPose pose 
) [static]
static void expand_scene ( FileData fd,
Main mainvar,
Scene sce 
) [static]
static void expand_sound ( FileData fd,
Main mainvar,
bSound snd 
) [static]

Definition at line 14021 of file readfile.c.

References expand_doit(), and bSound::ipo.

Referenced by expand_main().

static void expand_speaker ( FileData fd,
Main mainvar,
Speaker spk 
) [static]

Definition at line 14013 of file readfile.c.

References Speaker::adt, expand_animdata(), expand_doit(), and Speaker::sound.

Referenced by expand_main().

static void expand_texture ( FileData fd,
Main mainvar,
Tex tex 
) [static]

Definition at line 13556 of file readfile.c.

References Tex::adt, expand_animdata(), expand_doit(), expand_nodetree(), Tex::ima, and Tex::nodetree.

Referenced by expand_main().

static void expand_world ( FileData fd,
Main mainvar,
World wrld 
) [static]
static int fd_read_from_file ( FileData filedata,
void *  buffer,
unsigned int  size 
) [static]

Definition at line 850 of file readfile.c.

References FileData::filedes, and FileData::seek.

Referenced by blo_read_blendafterruntime().

static int fd_read_from_memfile ( FileData filedata,
void *  buffer,
unsigned int  size 
) [static]
static int fd_read_from_memory ( FileData filedata,
void *  buffer,
unsigned int  size 
) [static]

Definition at line 876 of file readfile.c.

References FileData::buffer, FileData::buffersize, MIN2, and FileData::seek.

Referenced by blo_openblendermemory().

static int fd_read_gzip_from_file ( FileData filedata,
void *  buffer,
unsigned int  size 
) [static]

Definition at line 863 of file readfile.c.

References FileData::gzfiledes, and FileData::seek.

Referenced by blo_openblenderfile().

static FileData* filedata_new ( void  ) [static]
static BHead* find_bhead ( FileData fd,
void *  old 
) [static]
static BHead* find_previous_lib ( FileData fd,
BHead bhead 
) [static]

Definition at line 13261 of file readfile.c.

References bheadsort::bhead, blo_prevbhead(), BHead::code, ID_LI, FileData::memfile, and NULL.

Referenced by expand_doit().

static void fix_relpaths_library ( const char *  basepath,
Main main 
) [static]
static BHeadN* get_bhead ( FileData fd) [static]
static void give_base_to_groups ( Main mainvar,
Scene scene 
) [static]
static void give_base_to_objects ( Main mainvar,
Scene sce,
Library lib,
const short  idcode,
const short  is_link 
) [static]
static void IDP_DirectLinkArray ( IDProperty prop,
int  switch_endian,
FileData fd 
) [static]
static void IDP_DirectLinkGroup ( IDProperty prop,
int  switch_endian,
FileData fd 
) [static]
static void IDP_DirectLinkIDPArray ( IDProperty prop,
int  switch_endian,
FileData fd 
) [static]
static void IDP_DirectLinkProperty ( IDProperty prop,
int  switch_endian,
FileData fd 
) [static]
static void IDP_DirectLinkString ( IDProperty prop,
FileData fd 
) [static]
static void IDP_LibLinkProperty ( IDProperty UNUSEDprop,
int   UNUSEDswitch_endian,
FileData UNUSEDfd 
) [static]

Definition at line 1611 of file readfile.c.

static void IDP_LibLinkProperty ( IDProperty prop,
int  switch_endian,
FileData fd 
) [static]
static void idproperties_fix_group_lengths ( ListBase  idlist) [static]

Definition at line 6677 of file readfile.c.

References ListBase::first, idproperties_fix_groups_lengths_recurse(), ID::next, and ID::properties.

Referenced by do_versions().

static void idproperties_fix_groups_lengths_recurse ( IDProperty prop) [static]
static ID* is_yet_read ( FileData fd,
Main mainvar,
BHead bhead 
) [static]

Definition at line 13307 of file readfile.c.

References bhead_id_name(), BLI_findstring(), GS, and which_libbase().

Referenced by append_named_part(), and expand_doit().

static void lib_link_action ( FileData fd,
Main main 
) [static]
static void lib_link_all ( FileData fd,
Main main 
) [static]
static void lib_link_animdata ( FileData fd,
ID id,
AnimData adt 
) [static]
static void lib_link_armature ( FileData fd,
Main main 
) [static]
static void lib_link_brush ( FileData fd,
Main main 
) [static]
static void lib_link_camera ( FileData fd,
Main main 
) [static]
static void lib_link_constraint_cb ( bConstraint UNUSEDcon,
ID **  idpoin,
void *  userdata 
) [static]

Definition at line 2443 of file readfile.c.

References tConstraintLinkData::fd, tConstraintLinkData::id, ID::lib, and newlibadr().

Referenced by lib_link_constraints().

static void lib_link_constraint_channels ( FileData fd,
ID id,
ListBase chanbase 
) [static]
static void lib_link_constraints ( FileData fd,
ID id,
ListBase conlist 
) [static]
static void lib_link_curve ( FileData fd,
Main main 
) [static]
static void lib_link_customdata_mtface ( FileData fd,
Mesh me,
CustomData fdata,
int  totface 
) [static]
static void lib_link_fcurves ( FileData fd,
ID id,
ListBase list 
) [static]
static void lib_link_fmodifiers ( FileData fd,
ID id,
ListBase list 
) [static]
static void lib_link_group ( FileData fd,
Main main 
) [static]
static void lib_link_image ( FileData fd,
Main main 
) [static]
static void lib_link_ipo ( FileData fd,
Main main 
) [static]
static void lib_link_key ( FileData fd,
Main main 
) [static]
static void lib_link_keyingsets ( FileData fd,
ID id,
ListBase list 
) [static]
static void lib_link_lamp ( FileData fd,
Main main 
) [static]
static void lib_link_latt ( FileData fd,
Main main 
) [static]
static void lib_link_library ( FileData UNUSEDfd,
Main main 
) [static]

Definition at line 5859 of file readfile.c.

References ListBase::first, Library::id, Main::library, ID::next, and ID::us.

Referenced by lib_link_all().

static void lib_link_material ( FileData fd,
Main main 
) [static]
static void lib_link_mball ( FileData fd,
Main main 
) [static]
static void lib_link_mesh ( FileData fd,
Main main 
) [static]
static void lib_link_modifiers ( FileData fd,
Object ob 
) [static]

Definition at line 3898 of file readfile.c.

References lib_link_modifiers__linkModifiers(), and modifiers_foreachIDLink().

Referenced by lib_link_object().

static void lib_link_modifiers__linkModifiers ( void *  userData,
Object ob,
ID **  idpoin 
) [static]

Definition at line 3888 of file readfile.c.

References GS, Object::id, ID_OB, ID::lib, and newlibadr().

Referenced by lib_link_modifiers().

static void lib_link_movieclip ( FileData fd,
Main main 
) [static]
static void lib_link_mtface ( FileData fd,
Mesh me,
MTFace mtface,
int  totface 
) [static]

Definition at line 3601 of file readfile.c.

References i, Mesh::id, Image::id, ID::lib, newlibadr(), MTFace::tpage, and ID::us.

Referenced by lib_link_customdata_mtface().

static void lib_link_nladata ( FileData fd,
ID id,
ListBase list 
) [static]

Definition at line 1986 of file readfile.c.

References ListBase::first, lib_link_nladata_strips(), NlaTrack::next, and NlaTrack::strips.

Referenced by lib_link_animdata().

static void lib_link_nladata_strips ( FileData fd,
ID id,
ListBase list 
) [static]
static void lib_link_nlastrips ( FileData fd,
ID id,
ListBase striplist 
) [static]
static void lib_link_nodetree ( FileData fd,
Main main 
) [static]

Definition at line 2146 of file readfile.c.

References ListBase::first, ID::flag, bNodeTree::id, lib_link_ntree(), LIB_NEEDLINK, ID::next, and Main::nodetree.

Referenced by lib_link_all().

static void lib_link_ntree ( FileData fd,
ID id,
bNodeTree ntree 
) [static]
static void lib_link_object ( FileData fd,
Main main 
) [static]

Definition at line 3903 of file readfile.c.

References bActionActuator::act, ACT_2DFILTER, ACT_ACTION, ACT_ADD_OBJECT, ACT_ARMATURE, ACT_CAMERA, ACT_EDIT_OBJECT, ACT_GAME, ACT_MESSAGE, ACT_OBJECT, ACT_PARENT, ACT_PROPERTY, ACT_SCENE, ACT_SHAPEACTION, ACT_SOUND, ACT_STATE, ACT_STEERING, Object::actuators, Object::adt, BKE_report(), bSceneActuator::camera, Object::constraints, CONT_PYTHON, Object::controllers, bActuator::data, bController::data, bSensor::data, Object::data, SmokeModifierData::domain, Object::dup_group, Object::duplilist, EFF_PARTICLE, SoftBody::effector_weights, eModifierType_Fluidsim, eModifierType_Smoke, FD_FLAGS_SWITCH_ENDIAN, ListBase::first, ID::flag, SmokeDomainSettings::flags, FileData::flags, free_pose(), bMessageSensor::fromObject, FluidsimModifierData::fss, give_totcolp(), Object::gpd, EffectorWeights::group, PartEff::group, Object::id, IDP_LibLinkProperty(), init_actuator(), FluidsimSettings::ipo, ID::lib, lib_link_animdata(), lib_link_constraint_channels(), lib_link_constraints(), lib_link_modifiers(), lib_link_nlastrips(), lib_link_partdeflect(), lib_link_particlesystems(), lib_link_pose(), LIB_NEEDLINK, bController::links, bSensor::links, bTouchSensor::ma, Object::mat, bEditObjectActuator::me, MOD_SMOKE_FILE_LOAD, MOD_SMOKE_TYPE_DOMAIN, Object::mode, modifiers_findByType(), Library::name, ID::name, bSteeringActuator::navmesh, newglobadr(), newlibadr(), newlibadr_us(), ID::next, bActuator::next, bController::next, bSensor::next, PartEff::next, NULL, bParentActuator::ob, bPropertyActuator::ob, bEditObjectActuator::ob, bAddObjectActuator::ob, bCameraActuator::ob, OB_EMPTY, OB_MODE_POSE, OB_RECALC_DATA, OB_RECALC_OB, OB_RECALC_TIME, Main::object, Object::parent, Object::particlesystem, Object::pd, Object::pose, Object::poselib, ID::properties, Object::proxy, Object::proxy_from, Object::proxy_group, Object::recalc, bObjectActuator::reference, FileData::reports, resize_object_material(), RPT_WARNING, bSceneActuator::scene, SENS_MESSAGE, SENS_TOUCH, Object::sensors, bController::slinks, Object::soft, bSoundActuator::sound, bArmatureActuator::subtarget, bSteeringActuator::target, bArmatureActuator::target, bTwoDFilterActuator::text, bPythonCont::text, bMessageActuator::toObject, Object::totcol, bController::totlinks, bSensor::totlinks, bController::totslinks, Object::track, SmokeModifierData::type, bActuator::type, bController::type, bSensor::type, PartEff::type, and Object::type.

Referenced by lib_link_all().

static void lib_link_partdeflect ( FileData fd,
ID id,
PartDeflect pd 
) [static]

Definition at line 3343 of file readfile.c.

References ID::lib, newlibadr_us(), and PartDeflect::tex.

Referenced by lib_link_object(), and lib_link_particlesettings().

static void lib_link_particlesettings ( FileData fd,
Main main 
) [static]
static void lib_link_particlesystems ( FileData fd,
Object ob,
ID id,
ListBase particles 
) [static]
static void lib_link_pose ( FileData fd,
Object ob,
bPose pose 
) [static]
static void lib_link_scene ( FileData fd,
Main main 
) [static]
static void lib_link_screen ( FileData fd,
Main main 
) [static]

Definition at line 5113 of file readfile.c.

References SpaceAction::action, SpaceNla::ads, SpaceAction::ads, SpaceIpo::ads, bScreen::animtimer, bScreen::areabase, View3D::bgpicbase, BLI_addtail(), butspace_version_132(), View3D::camera, SpaceClip::clip, BGpic::clip, TreeStore::data, SpaceText::drawcache, SpaceNode::edittree, ELEM3, SpaceFile::files, bDopeSheet::filter_grp, ListBase::first, ID::flag, SpaceFile::folders_next, SpaceFile::folders_prev, ScrArea::full, SpaceImage::gpd, GS, SpaceNode::id, TreeStoreElem::id, bScreen::id, ID_LA, ID_MA, ID_SCE, ID_TE, ID_WO, BGpic::ima, SpaceImage::image, ListBase::last, SpaceFile::layout, ID::lib, LIB_NEEDLINK, SpaceNode::linkdrag, View3D::localvd, SpaceButs::mainb, SpaceButs::mainbo, SpaceButs::mainbuser, ID::name, newlibadr(), newlibadr_us(), ScrArea::next, BGpic::next, SpaceLink::next, ID::next, SpaceNode::nodetree, NTREE_COMPOSIT, NTREE_SHADER, NTREE_TEXTURE, NULL, View3D::ob_centre, MovieClipScopes::ok, SpaceFile::op, SpaceButs::pinid, bScreen::scene, SpaceClip::scopes, Main::screen, SpaceScript::script, SCRIPT_SET_NULL, SpaceOops::search_tse, bDopeSheet::source, SPACE_ACTION, SPACE_BUTS, SPACE_CLIP, SPACE_FILE, SPACE_IMAGE, SPACE_IPO, SPACE_NLA, SPACE_NODE, SPACE_OUTLINER, SPACE_SCRIPT, SPACE_TEXT, SPACE_VIEW3D, ScrArea::spacedata, SpaceLink::spacetype, SpaceText::text, MovieClipScopes::track_preview, SpaceOops::tree, SpaceOops::treestore, SpaceNode::treetype, ID::us, TreeStore::usedelem, and Main::versionfile.

Referenced by lib_link_all().

void lib_link_screen_restore ( Main newmain,
bScreen curscreen,
Scene curscene 
)

Definition at line 5314 of file readfile.c.

References SpaceAction::action, SpaceNla::ads, SpaceAction::ads, SpaceIpo::ads, bScreen::areabase, View3D::bgpicbase, Scene::camera, View3D::camera, SpaceClip::clip, BGpic::clip, copy_v3_v3(), Scene::cursor, TreeStore::data, SpaceNode::edittree, ELEM3, bDopeSheet::filter_grp, ListBase::first, SpaceImage::gpd, GS, bNodeTree::id, SpaceNode::id, TreeStoreElem::id, bScreen::id, wmWindowManager::id, ID_MA, ID_SCE, ID_TE, BGpic::ima, SpaceImage::image, Scene::lay, View3D::lay, View3D::layact, View3D::localvd, ID::name, ScrArea::next, ARegion::next, BGpic::next, SpaceLink::next, wmWindow::next, ID::next, SpaceNode::nodetree, NTREE_COMPOSIT, NTREE_SHADER, NTREE_TEXTURE, NULL, View3D::ob_centre, MovieClipScopes::ok, Scopes::ok, SpaceFile::op, SpaceButs::pinid, RE_engine_free(), ScrArea::regionbase, ARegion::regiondata, RegionView3D::render_engine, restore_pointer_by_name(), bScreen::scene, View3D::scenelock, SpaceClip::scopes, SpaceImage::scopes, Main::screen, wmWindow::screen, SpaceScript::script, SCRIPT_SET_NULL, SpaceOops::search_tse, bDopeSheet::source, SPACE_ACTION, SPACE_BUTS, SPACE_CLIP, SPACE_FILE, SPACE_IMAGE, SPACE_IPO, SPACE_NLA, SPACE_NODE, SPACE_OUTLINER, SPACE_SCRIPT, SPACE_TEXT, SPACE_VIEW3D, ScrArea::spacedata, SpaceLink::spacetype, Main::text, SpaceText::text, SpaceOops::treestore, SpaceNode::treetype, TreeStore::usedelem, Scopes::vecscope, Scopes::waveform_1, Scopes::waveform_2, Scopes::waveform_3, wmWindowManager::windows, wmWindow::winid, bScreen::winid, and Main::wm.

Referenced by setup_app_data().

static void lib_link_sound ( FileData fd,
Main main 
) [static]
static void lib_link_speaker ( FileData fd,
Main main 
) [static]
static void lib_link_text ( FileData UNUSEDfd,
Main main 
) [static]

Definition at line 2888 of file readfile.c.

References ListBase::first, ID::flag, Text::id, LIB_NEEDLINK, ID::next, and Main::text.

Referenced by lib_link_all().

static void lib_link_texture ( FileData fd,
Main main 
) [static]
static void lib_link_vfont ( FileData UNUSEDfd,
Main main 
) [static]

Definition at line 2867 of file readfile.c.

References ListBase::first, ID::flag, VFont::id, LIB_NEEDLINK, ID::next, and Main::vfont.

Referenced by lib_link_all().

static void lib_link_windowmanager ( FileData fd,
Main main 
) [static]
static void lib_link_world ( FileData fd,
Main main 
) [static]
static void lib_node_do_versions_group_indices ( bNode gnode) [static]
static void lib_nodetree_do_versions_group_indices_cb ( void *  UNUSEDdata,
ID UNUSEDid,
bNodeTree ntree 
) [static]
static void lib_nodetree_do_versions_update_cb ( void *  UNUSEDdata,
ID UNUSEDid,
bNodeTree ntree 
) [static]

Definition at line 2270 of file readfile.c.

References ntreeUpdateTree(), and bNodeTree::update.

Referenced by lib_verify_nodetree().

static void lib_nodetree_init_types_cb ( void *  UNUSEDdata,
ID UNUSEDid,
bNodeTree ntree 
) [static]
static void lib_verify_nodetree ( Main main,
int   UNUSEDopen 
) [static]
static Main* library_append_begin ( Main mainvar,
FileData **  fd,
const char *  filepath 
) [static]
static void library_append_end ( const bContext C,
Main mainl,
FileData **  fd,
int  idcode,
short  flag 
) [static]
static void link_glob_list ( FileData fd,
ListBase lb 
) [static]
static void link_global ( FileData fd,
BlendFileData bfd 
) [static]
static void link_ibuf_list ( FileData fd,
ListBase lb 
) [static]

Definition at line 2960 of file readfile.c.

References ListBase::first, ListBase::last, newimaadr(), Link::next, NULL, and Link::prev.

Referenced by direct_link_image().

static void link_list ( FileData fd,
ListBase lb 
) [static]
static void link_paint ( FileData fd,
Scene sce,
Paint p 
) [static]

Definition at line 4683 of file readfile.c.

References Paint::brush, Scene::id, ID::lib, newlibadr_us(), NULL, and Paint::paint_cursor.

Referenced by lib_link_scene().

static void link_recurs_seq ( FileData fd,
ListBase lb 
) [static]

Definition at line 4797 of file readfile.c.

References ListBase::first, link_list(), Sequence::next, and Sequence::seqbase.

Referenced by direct_link_scene().

static int mainvar_count_libread_blocks ( Main mainvar) [static]

Definition at line 14437 of file readfile.c.

References ID::flag, LIB_READ, MAX_LIBARRAY, ID::next, and set_listbasepointers().

Referenced by read_libraries().

static int map_223_keybd_code_to_224_keybd_code ( int  code) [static]

Definition at line 6360 of file readfile.c.

Referenced by do_versions().

static void* newdataadr ( FileData fd,
void *  adr 
) [static]
static void* newglobadr ( FileData fd,
void *  adr 
) [static]

Definition at line 1141 of file readfile.c.

References FileData::globmap, and oldnewmap_lookup_and_inc().

Referenced by lib_link_object().

static void* newimaadr ( FileData fd,
void *  adr 
) [static]
static void* newlibadr ( FileData fd,
void *  lib,
void *  adr 
) [static]
static void* newlibadr_us ( FileData fd,
void *  lib,
void *  adr 
) [static]
static void* newmclipadr ( FileData fd,
void *  adr 
) [static]
static void ntree_version_241 ( bNodeTree ntree) [static]
static void ntree_version_242 ( bNodeTree ntree) [static]
static void ntree_version_245 ( FileData fd,
Library lib,
bNodeTree ntree 
) [static]
static int object_in_any_scene ( Main mainvar,
Object ob 
) [static]

Definition at line 14121 of file readfile.c.

References ListBase::first, Scene::id, ID::next, object_in_scene(), and Main::scene.

Referenced by give_base_to_objects().

static void oldnewmap_clear ( OldNewMap onm) [static]

Definition at line 409 of file readfile.c.

References OldNewMap::lasthit, and OldNewMap::nentries.

Referenced by read_libblock(), and read_userdef().

static void oldnewmap_free ( OldNewMap onm) [static]

Definition at line 415 of file readfile.c.

References OldNewMap::entries, and MEM_freeN().

Referenced by blo_freefiledata(), and read_libraries().

static void oldnewmap_free_unused ( OldNewMap onm) [static]

Definition at line 396 of file readfile.c.

References OldNewMap::entries, i, MEM_freeN(), OldNewMap::nentries, OldNew::newp, OldNew::nr, and NULL.

Referenced by read_libblock(), and read_userdef().

static void oldnewmap_insert ( OldNewMap onm,
void *  oldaddr,
void *  newaddr,
int  nr 
) [static]
static void* oldnewmap_liblookup ( OldNewMap onm,
void *  addr,
void *  lib 
) [static]
static void* oldnewmap_lookup_and_inc ( OldNewMap onm,
void *  addr 
) [static]
static OldNewMap* oldnewmap_new ( void  ) [static]
static void oldnewmap_sort ( FileData fd) [static]
static BHead* read_data_into_oldnewmap ( FileData fd,
BHead bhead,
const char *  allocname 
) [static]
static int read_file_dna ( FileData fd) [static]
static void read_file_version ( FileData fd,
Main main 
) [static]
static BHead* read_global ( BlendFileData bfd,
FileData fd,
BHead bhead 
) [static]
static BHead* read_libblock ( FileData fd,
Main main,
BHead bhead,
int  flag,
ID **  id_r 
) [static]
static void read_libraries ( FileData basefd,
ListBase mainlist 
) [static]
static void * read_struct ( FileData fd,
BHead bh,
const char *  blockname 
) [static]
static BHead* read_userdef ( BlendFileData bfd,
FileData fd,
BHead bhead 
) [static]
static void* restore_pointer_by_name ( Main mainp,
ID id,
int  user 
) [static]

Definition at line 5286 of file readfile.c.

References ListBase::first, GS, ID::lib, ID::name, ID::next, NULL, ID::us, and which_libbase().

Referenced by lib_link_screen_restore().

static void sequencer_init_preview_region ( ARegion ar) [static]
static void sort_bhead_old_map ( FileData fd) [static]
static void sort_shape_fix ( Main main) [static]
static void split_libdata ( ListBase lb,
Main first 
) [static]
static void switch_endian_bh4 ( BHead4 bhead) [static]

Definition at line 569 of file readfile.c.

References BHead4::code, ENDB, BHead4::len, BHead4::nr, BHead4::SDNAnr, and SWITCH_INT.

Referenced by get_bhead().

static void switch_endian_bh8 ( BHead8 bhead) [static]

Definition at line 581 of file readfile.c.

References BHead8::code, ENDB, BHead8::len, BHead8::nr, BHead8::SDNAnr, and SWITCH_INT.

Referenced by get_bhead().

static void switch_endian_keyblock ( Key key,
KeyBlock kb 
) [static]
static void switch_endian_knots ( Nurb nu) [static]

Definition at line 3046 of file readfile.c.

References KNOTSU, Nurb::knotsu, KNOTSV, Nurb::knotsv, len(), and SWITCH_INT.

Referenced by direct_link_curve().

static void switch_endian_structs ( struct SDNA filesdna,
BHead bhead 
) [static]

Definition at line 1364 of file readfile.c.

References data, DNA_struct_switch_endian(), BHead::nr, BHead::SDNAnr, SDNA::structs, and SDNA::typelens.

Referenced by read_struct().

static void test_pointer_array ( FileData fd,
void **  mat 
) [static]
static void vcol_to_fcol ( Mesh me) [static]
static int verg_bheadsort ( const void *  v1,
const void *  v2 
) [static]

Definition at line 13229 of file readfile.c.

References bheadsort::old.

Referenced by find_bhead(), and sort_bhead_old_map().

static int verg_oldnewmap ( const void *  v1,
const void *  v2 
) [static]

Definition at line 289 of file readfile.c.

References OldNew::old.

Referenced by oldnewmap_liblookup(), and oldnewmap_sort().

static void versions_gpencil_add_main ( ListBase lb,
ID id,
const char *  name 
) [static]

Definition at line 7104 of file readfile.c.

References BLI_addtail(), G, G_DEBUG, ID_GD, LIB_FAKEUSER, ID::name, and new_id().

Referenced by do_versions_gpencil_2_50().

static void view3d_split_250 ( View3D v3d,
ListBase regions 
) [static]

Variable Documentation

const char* ptcache_data_struct[] [static]
Initial value:
 {
    "", 
    "", 
    "", 
    "", 
    "", 
    "", 
    "", 
    "BoidData" 
}

Definition at line 3264 of file readfile.c.