Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/lib_override.c
| Show First 20 Lines • Show All 2,329 Lines • ▼ Show 20 Lines | #endif | ||||
| LISTBASE_FOREACH (Object *, ob, &bmain->objects) { | LISTBASE_FOREACH (Object *, ob, &bmain->objects) { | ||||
| if (ob->type == OB_ARMATURE) { | if (ob->type == OB_ARMATURE) { | ||||
| BLI_assert(ob->data != NULL); | BLI_assert(ob->data != NULL); | ||||
| BKE_pose_ensure(bmain, ob, ob->data, true); | BKE_pose_ensure(bmain, ob, ob->data, true); | ||||
| } | } | ||||
| } | } | ||||
| struct LibOverrideOpCreateData create_pool_data = {.bmain = bmain, .changed = false}; | struct LibOverrideOpCreateData create_pool_data = {.bmain = bmain, .changed = false}; | ||||
| TaskPool *task_pool = BLI_task_pool_create(&create_pool_data, TASK_PRIORITY_HIGH); | TaskPool *task_pool = BLI_task_pool_create( | ||||
| &create_pool_data, TASK_PRIORITY_HIGH, TASK_ISOLATION_ON); | |||||
| FOREACH_MAIN_ID_BEGIN (bmain, id) { | FOREACH_MAIN_ID_BEGIN (bmain, id) { | ||||
| if (!ID_IS_LINKED(id) && ID_IS_OVERRIDE_LIBRARY_REAL(id) && | if (!ID_IS_LINKED(id) && ID_IS_OVERRIDE_LIBRARY_REAL(id) && | ||||
| (force_auto || (id->tag & LIB_TAG_OVERRIDE_LIBRARY_AUTOREFRESH))) { | (force_auto || (id->tag & LIB_TAG_OVERRIDE_LIBRARY_AUTOREFRESH))) { | ||||
| /* Usual issue with pose, it's quiet rare but sometimes they may not be up to date when this | /* Usual issue with pose, it's quiet rare but sometimes they may not be up to date when this | ||||
| * function is called. */ | * function is called. */ | ||||
| if (GS(id->name) == ID_OB) { | if (GS(id->name) == ID_OB) { | ||||
| Object *ob = (Object *)id; | Object *ob = (Object *)id; | ||||
| ▲ Show 20 Lines • Show All 524 Lines • Show Last 20 Lines | |||||