Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/lib_query.c
| Show First 20 Lines • Show All 656 Lines • ▼ Show 20 Lines | switch ((ID_Type)GS(id->name)) { | ||||
| Scene *scene = (Scene *)id; | Scene *scene = (Scene *)id; | ||||
| ToolSettings *toolsett = scene->toolsettings; | ToolSettings *toolsett = scene->toolsettings; | ||||
| 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_NEVER_SELF); | CALLBACK_INVOKE(scene->set, IDWALK_CB_NEVER_SELF); | ||||
| CALLBACK_INVOKE(scene->clip, IDWALK_CB_USER); | CALLBACK_INVOKE(scene->clip, IDWALK_CB_USER); | ||||
| CALLBACK_INVOKE(scene->gpd, IDWALK_CB_USER); | CALLBACK_INVOKE(scene->gpd, IDWALK_CB_USER); | ||||
| CALLBACK_INVOKE(scene->r.bake.cage_object, IDWALK_CB_NOP); | |||||
| 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( | library_foreach_ID_as_subdata_link( | ||||
| (ID **)&scene->nodetree, callback, user_data, flag, &data); | (ID **)&scene->nodetree, callback, user_data, flag, &data); | ||||
| } | } | ||||
| if (scene->ed) { | if (scene->ed) { | ||||
| Sequence *seq; | Sequence *seq; | ||||
| SEQP_BEGIN (scene->ed, seq) { | SEQP_BEGIN (scene->ed, seq) { | ||||
| ▲ Show 20 Lines • Show All 98 Lines • ▼ Show 20 Lines | switch ((ID_Type)GS(id->name)) { | ||||
| } | } | ||||
| break; | break; | ||||
| } | } | ||||
| case ID_OB: { | case ID_OB: { | ||||
| Object *object = (Object *)id; | Object *object = (Object *)id; | ||||
| ParticleSystem *psys; | ParticleSystem *psys; | ||||
| BakePass *bp; | |||||
| /* Object is special, proxies make things hard... */ | /* Object is special, proxies make things hard... */ | ||||
| const int data_cb_flag = data.cb_flag; | const int data_cb_flag = data.cb_flag; | ||||
| const int proxy_cb_flag = ((data.flag & IDWALK_NO_INDIRECT_PROXY_DATA_USAGE) == 0 && | const int proxy_cb_flag = ((data.flag & IDWALK_NO_INDIRECT_PROXY_DATA_USAGE) == 0 && | ||||
| (object->proxy || object->proxy_group)) ? | (object->proxy || object->proxy_group)) ? | ||||
| IDWALK_CB_INDIRECT_USAGE : | IDWALK_CB_INDIRECT_USAGE : | ||||
| 0; | 0; | ||||
| ▲ Show 20 Lines • Show All 81 Lines • ▼ Show 20 Lines | switch ((ID_Type)GS(id->name)) { | ||||
| if (object->soft) { | if (object->soft) { | ||||
| CALLBACK_INVOKE(object->soft->collision_group, IDWALK_CB_NOP); | CALLBACK_INVOKE(object->soft->collision_group, IDWALK_CB_NOP); | ||||
| if (object->soft->effector_weights) { | if (object->soft->effector_weights) { | ||||
| CALLBACK_INVOKE(object->soft->effector_weights->group, IDWALK_CB_NOP); | CALLBACK_INVOKE(object->soft->effector_weights->group, IDWALK_CB_NOP); | ||||
| } | } | ||||
| } | } | ||||
| for (bp = object->bake_passes.first; bp; bp = bp->next) { | |||||
| if (bp->image) { | |||||
| CALLBACK_INVOKE(bp->image, IDWALK_CB_USER); | |||||
| } | |||||
| if (bp->material) { | |||||
| CALLBACK_INVOKE(bp->material, IDWALK_CB_USER); | |||||
| } | |||||
| if (bp->cage_object) { | |||||
| CALLBACK_INVOKE(bp->cage_object, IDWALK_CB_NOP); | |||||
| } | |||||
| if (bp->bake_from_collection) { | |||||
| CALLBACK_INVOKE(bp->bake_from_collection, IDWALK_CB_NOP); | |||||
| } | |||||
| } | |||||
| break; | break; | ||||
| } | } | ||||
| case ID_AR: { | case ID_AR: { | ||||
| bArmature *arm = (bArmature *)id; | bArmature *arm = (bArmature *)id; | ||||
| for (Bone *bone = arm->bonebase.first; bone; bone = bone->next) { | for (Bone *bone = arm->bonebase.first; bone; bone = bone->next) { | ||||
| library_foreach_bone(&data, bone); | library_foreach_bone(&data, bone); | ||||
| ▲ Show 20 Lines • Show All 838 Lines • Show Last 20 Lines | |||||