| 1128 | } |
| 1129 | |
| 1130 | void BlendAnimSelections::Load(Skeleton* skelet, const ParamEntry& cfg) |
| 1131 | { |
| 1132 | Clear(); |
| 1133 | Realloc(cfg.GetSize() / 2); |
| 1134 | for (int i = 0; i < cfg.GetSize() - 1; i += 2) |
| 1135 | { |
| 1136 | RStringB name = cfg[i]; |
| 1137 | float factor = cfg[i + 1]; |
| 1138 | BlendAnimInfo& info = Set(Add()); |
| 1139 | int index = skelet->FindBone(name); |
| 1140 | info.matrixIndex = index; |
| 1141 | info.factor = factor; |
| 1142 | } |
| 1143 | // sort by matrix index |
| 1144 | QSort(Data(), Size(), CompBlendAnim); |
| 1145 | } |
| 1146 | |
| 1147 | void BlendAnimSelections::AddOther(const BlendAnimSelections& src, float factor) |
| 1148 | { |