Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/library_query.c
| Show First 20 Lines • Show All 401 Lines • ▼ Show 20 Lines | switch ((ID_Type)GS(id->name)) { | ||||
| Library *lib = (Library *) id; | Library *lib = (Library *) id; | ||||
| CALLBACK_INVOKE(lib->parent, IDWALK_CB_NOP); | CALLBACK_INVOKE(lib->parent, IDWALK_CB_NOP); | ||||
| break; | break; | ||||
| } | } | ||||
| case ID_SCE: | case ID_SCE: | ||||
| { | { | ||||
| Scene *scene = (Scene *) id; | Scene *scene = (Scene *) id; | ||||
| ToolSettings *toolsett = scene->toolsettings; | ToolSettings *toolsett = scene->toolsettings; | ||||
| SceneRenderLayer *srl; | |||||
| CALLBACK_INVOKE(scene->camera, IDWALK_CB_NOP); | CALLBACK_INVOKE(scene->camera, IDWALK_CB_NOP); | ||||
| CALLBACK_INVOKE(scene->world, IDWALK_CB_USER); | CALLBACK_INVOKE(scene->world, IDWALK_CB_USER); | ||||
| CALLBACK_INVOKE(scene->set, IDWALK_CB_NOP); | CALLBACK_INVOKE(scene->set, IDWALK_CB_NOP); | ||||
| CALLBACK_INVOKE(scene->clip, IDWALK_CB_USER); | CALLBACK_INVOKE(scene->clip, IDWALK_CB_USER); | ||||
| if (scene->nodetree) { | if (scene->nodetree) { | ||||
| /* nodetree **are owned by IDs**, treat them as mere sub-data and not real ID! */ | /* nodetree **are owned by IDs**, treat them as mere sub-data and not real ID! */ | ||||
| library_foreach_ID_as_subdata_link((ID **)&scene->nodetree, callback, user_data, flag, &data); | library_foreach_ID_as_subdata_link((ID **)&scene->nodetree, callback, user_data, flag, &data); | ||||
| } | } | ||||
| /* DO NOT handle scene->basact here, it's doubling with the loop over whole scene->base later, | /* DO NOT handle scene->basact here, it's doubling with the loop over whole scene->base later, | ||||
| * since basact is just a pointer to one of those items. */ | * since basact is just a pointer to one of those items. */ | ||||
| CALLBACK_INVOKE(scene->obedit, IDWALK_CB_NOP); | CALLBACK_INVOKE(scene->obedit, IDWALK_CB_NOP); | ||||
| for (srl = scene->r.layers.first; srl; srl = srl->next) { | |||||
| FreestyleModuleConfig *fmc; | |||||
| FreestyleLineSet *fls; | |||||
| if (srl->mat_override) { | |||||
| CALLBACK_INVOKE(srl->mat_override, IDWALK_CB_USER); | |||||
| } | |||||
| if (srl->light_override) { | |||||
| CALLBACK_INVOKE(srl->light_override, IDWALK_CB_USER); | |||||
| } | |||||
| for (fmc = srl->freestyleConfig.modules.first; fmc; fmc = fmc->next) { | |||||
| if (fmc->script) { | |||||
| CALLBACK_INVOKE(fmc->script, IDWALK_CB_NOP); | |||||
| } | |||||
| } | |||||
| for (fls = srl->freestyleConfig.linesets.first; fls; fls = fls->next) { | |||||
| if (fls->group) { | |||||
| CALLBACK_INVOKE(fls->group, IDWALK_CB_USER); | |||||
| } | |||||
| if (fls->linestyle) { | |||||
| CALLBACK_INVOKE(fls->linestyle, IDWALK_CB_USER); | |||||
| } | |||||
| } | |||||
| } | |||||
| if (scene->ed) { | if (scene->ed) { | ||||
| Sequence *seq; | Sequence *seq; | ||||
| SEQP_BEGIN(scene->ed, seq) | SEQP_BEGIN(scene->ed, seq) | ||||
| { | { | ||||
| CALLBACK_INVOKE(seq->scene, IDWALK_CB_NOP); | CALLBACK_INVOKE(seq->scene, IDWALK_CB_NOP); | ||||
| CALLBACK_INVOKE(seq->scene_camera, IDWALK_CB_NOP); | CALLBACK_INVOKE(seq->scene_camera, IDWALK_CB_NOP); | ||||
| CALLBACK_INVOKE(seq->clip, IDWALK_CB_USER); | CALLBACK_INVOKE(seq->clip, IDWALK_CB_USER); | ||||
| CALLBACK_INVOKE(seq->mask, IDWALK_CB_USER); | CALLBACK_INVOKE(seq->mask, IDWALK_CB_USER); | ||||
| Show All 15 Lines | switch ((ID_Type)GS(id->name)) { | ||||
| } | } | ||||
| for (LinkData *link = sc->filter_objects.first; link; link = link->next) { | for (LinkData *link = sc->filter_objects.first; link; link = link->next) { | ||||
| CALLBACK_INVOKE_ID(link->data, IDWALK_CB_USER); | CALLBACK_INVOKE_ID(link->data, IDWALK_CB_USER); | ||||
| } | } | ||||
| } | } | ||||
| FOREACH_SCENE_COLLECTION_END | FOREACH_SCENE_COLLECTION_END | ||||
| SceneLayer *sl; | SceneLayer *scene_layer; | ||||
| for (sl = scene->render_layers.first; sl; sl = sl->next) { | for (scene_layer = scene->render_layers.first; scene_layer; scene_layer = scene_layer->next) { | ||||
| for (Base *base = sl->object_bases.first; base; base = base->next) { | for (Base *base = scene_layer->object_bases.first; base; base = base->next) { | ||||
| CALLBACK_INVOKE(base->object, IDWALK_NOP); | CALLBACK_INVOKE(base->object, IDWALK_NOP); | ||||
| } | } | ||||
| for (FreestyleModuleConfig *fmc = scene_layer->freestyle_config.modules.first; fmc; fmc = fmc->next) { | |||||
| if (fmc->script) { | |||||
| CALLBACK_INVOKE(fmc->script, IDWALK_CB_NOP); | |||||
| } | |||||
| } | |||||
| for (FreestyleLineSet *fls = scene_layer->freestyle_config.linesets.first; fls; fls = fls->next) { | |||||
| if (fls->group) { | |||||
| CALLBACK_INVOKE(fls->group, IDWALK_CB_USER); | |||||
| } | |||||
| if (fls->linestyle) { | |||||
| CALLBACK_INVOKE(fls->linestyle, IDWALK_CB_USER); | |||||
| } | |||||
| } | |||||
| } | } | ||||
| for (TimeMarker *marker = scene->markers.first; marker; marker = marker->next) { | for (TimeMarker *marker = scene->markers.first; marker; marker = marker->next) { | ||||
| CALLBACK_INVOKE(marker->camera, IDWALK_CB_NOP); | CALLBACK_INVOKE(marker->camera, IDWALK_CB_NOP); | ||||
| } | } | ||||
| if (toolsett) { | if (toolsett) { | ||||
| CALLBACK_INVOKE(toolsett->skgen_template, IDWALK_CB_NOP); | CALLBACK_INVOKE(toolsett->skgen_template, IDWALK_CB_NOP); | ||||
| ▲ Show 20 Lines • Show All 924 Lines • Show Last 20 Lines | |||||