Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/readfile.c
| Context not available. | |||||
| #include "DNA_packedFile_types.h" | #include "DNA_packedFile_types.h" | ||||
| #include "DNA_particle_types.h" | #include "DNA_particle_types.h" | ||||
| #include "DNA_property_types.h" | #include "DNA_property_types.h" | ||||
| #include "DNA_python_component_types.h" | |||||
| #include "DNA_rigidbody_types.h" | #include "DNA_rigidbody_types.h" | ||||
| #include "DNA_text_types.h" | #include "DNA_text_types.h" | ||||
| #include "DNA_view3d_types.h" | #include "DNA_view3d_types.h" | ||||
| Context not available. | |||||
| ma->preview = direct_link_preview_image(fd, ma->preview); | ma->preview = direct_link_preview_image(fd, ma->preview); | ||||
| BLI_listbase_clear(&ma->gpumaterial); | BLI_listbase_clear(&ma->gpumaterial); | ||||
| BLI_listbase_clear(&ma->gpumaterialinstancing); | |||||
| } | } | ||||
| /* ************ READ PARTICLE SETTINGS ***************** */ | /* ************ READ PARTICLE SETTINGS ***************** */ | ||||
| Context not available. | |||||
| /* bMouseActuator *moa= act->data; */ | /* bMouseActuator *moa= act->data; */ | ||||
| } | } | ||||
| } | } | ||||
| ob->gamePredefinedBound = newlibadr_us(fd, ob->id.lib, ob->gamePredefinedBound); | |||||
| { | { | ||||
| FluidsimModifierData *fluidmd = (FluidsimModifierData *)modifiers_findByType(ob, eModifierType_Fluidsim); | FluidsimModifierData *fluidmd = (FluidsimModifierData *)modifiers_findByType(ob, eModifierType_Fluidsim); | ||||
| Context not available. | |||||
| bSensor *sens; | bSensor *sens; | ||||
| bController *cont; | bController *cont; | ||||
| bActuator *act; | bActuator *act; | ||||
| PythonComponent *pc; | |||||
| PythonComponentProperty *cprop; | |||||
| /* weak weak... this was only meant as draw flag, now is used in give_base_to_objects too */ | /* weak weak... this was only meant as draw flag, now is used in give_base_to_objects too */ | ||||
| ob->flag &= ~OB_FROMGROUP; | ob->flag &= ~OB_FROMGROUP; | ||||
| Context not available. | |||||
| else if (!ob->state) { | else if (!ob->state) { | ||||
| ob->state = 1; | ob->state = 1; | ||||
| } | } | ||||
| else if (!ob->init_state) { | |||||
| ob->init_state = 1; | |||||
| } | |||||
| for (cont = ob->controllers.first; cont; cont = cont->next) { | for (cont = ob->controllers.first; cont; cont = cont->next) { | ||||
| cont->data = newdataadr(fd, cont->data); | cont->data = newdataadr(fd, cont->data); | ||||
| cont->links = newdataadr(fd, cont->links); | cont->links = newdataadr(fd, cont->links); | ||||
| Context not available. | |||||
| act->data = newdataadr(fd, act->data); | act->data = newdataadr(fd, act->data); | ||||
| } | } | ||||
| link_glob_list(fd, &ob->components); | |||||
| pc = ob->components.first; | |||||
| while (pc) { | |||||
| link_glob_list(fd, &pc->properties); | |||||
| cprop = pc->properties.first; | |||||
| while (cprop) { | |||||
| link_list(fd, &cprop->enumval); | |||||
| for (LinkData *link = cprop->enumval.first; link; link = link->next) { | |||||
| link->data = newdataadr(fd, link->data); | |||||
| } | |||||
| cprop = cprop->next; | |||||
| } | |||||
| pc = pc->next; | |||||
| } | |||||
| link_list(fd, &ob->hooks); | link_list(fd, &ob->hooks); | ||||
| while (ob->hooks.first) { | while (ob->hooks.first) { | ||||
| ObHook *hook = ob->hooks.first; | ObHook *hook = ob->hooks.first; | ||||
| Context not available. | |||||
| fls->group = newlibadr_us(fd, sce->id.lib, fls->group); | fls->group = newlibadr_us(fd, sce->id.lib, fls->group); | ||||
| } | } | ||||
| } | } | ||||
| /*Game Settings: Dome Warp Text*/ | |||||
| sce->gm.dome.warptext = newlibadr(fd, sce->id.lib, sce->gm.dome.warptext); | |||||
| /* Motion Tracking */ | /* Motion Tracking */ | ||||
| sce->clip = newlibadr_us(fd, sce->id.lib, sce->clip); | sce->clip = newlibadr_us(fd, sce->id.lib, sce->clip); | ||||
| Context not available. | |||||
| /* copy to bfd handle */ | /* copy to bfd handle */ | ||||
| bfd->main->subversionfile = fg->subversion; | bfd->main->subversionfile = fg->subversion; | ||||
| bfd->main->upbgeversionfile = fg->upbgeversion; | |||||
| bfd->main->upbgesubversionfile = fg->upbgesubversion; | |||||
| bfd->main->minversionfile = fg->minversion; | bfd->main->minversionfile = fg->minversion; | ||||
| bfd->main->minsubversionfile = fg->minsubversion; | bfd->main->minsubversionfile = fg->minsubversion; | ||||
| bfd->main->build_commit_timestamp = fg->build_commit_timestamp; | bfd->main->build_commit_timestamp = fg->build_commit_timestamp; | ||||
| Context not available. | |||||
| blo_do_versions_250(fd, lib, main); | blo_do_versions_250(fd, lib, main); | ||||
| blo_do_versions_260(fd, lib, main); | blo_do_versions_260(fd, lib, main); | ||||
| blo_do_versions_270(fd, lib, main); | blo_do_versions_270(fd, lib, main); | ||||
| blo_do_versions_upbge(fd, lib, main); | |||||
| /* WATCH IT!!!: pointers from libdata have not been converted yet here! */ | /* WATCH IT!!!: pointers from libdata have not been converted yet here! */ | ||||
| /* WATCH IT 2!: Userdef struct init see do_versions_userdef() above! */ | /* WATCH IT 2!: Userdef struct init see do_versions_userdef() above! */ | ||||
| Context not available. | |||||
| expand_doit(fd, mainvar, lineset->linestyle); | expand_doit(fd, mainvar, lineset->linestyle); | ||||
| } | } | ||||
| } | } | ||||
| if (sce->r.dometext) | |||||
| expand_doit(fd, mainvar, sce->gm.dome.warptext); | |||||
| if (sce->gpd) | if (sce->gpd) | ||||
| expand_doit(fd, mainvar, sce->gpd); | expand_doit(fd, mainvar, sce->gpd); | ||||
| Context not available. | |||||