Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/readfile.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 3,869 Lines • ▼ Show 20 Lines | static void direct_link_bones(FileData *fd, Bone *bone) | ||||
| bone->parent = newdataadr(fd, bone->parent); | bone->parent = newdataadr(fd, bone->parent); | ||||
| bone->prop = newdataadr(fd, bone->prop); | bone->prop = newdataadr(fd, bone->prop); | ||||
| IDP_DirectLinkGroup_OrFree(&bone->prop, (fd->flags & FD_FLAGS_SWITCH_ENDIAN), fd); | IDP_DirectLinkGroup_OrFree(&bone->prop, (fd->flags & FD_FLAGS_SWITCH_ENDIAN), fd); | ||||
| bone->bbone_next = newdataadr(fd, bone->bbone_next); | bone->bbone_next = newdataadr(fd, bone->bbone_next); | ||||
| bone->bbone_prev = newdataadr(fd, bone->bbone_prev); | bone->bbone_prev = newdataadr(fd, bone->bbone_prev); | ||||
| bone->flag &= ~BONE_DRAW_ACTIVE; | bone->flag &= ~(BONE_DRAW_ACTIVE | BONE_DRAW_LOCKED_WEIGHT); | ||||
| link_list(fd, &bone->childbase); | link_list(fd, &bone->childbase); | ||||
| for (child = bone->childbase.first; child; child = child->next) { | for (child = bone->childbase.first; child; child = child->next) { | ||||
| direct_link_bones(fd, child); | direct_link_bones(fd, child); | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 8,334 Lines • Show Last 20 Lines | |||||