| 125 | } |
| 126 | |
| 127 | void Group::GetDesc(EntityDescription& desc) const { |
| 128 | Object::GetDesc(desc); |
| 129 | desc.AddInt(EDF_VERSION, 1); |
| 130 | for (const auto& i : children) { |
| 131 | Object* obj = i.direct_ptr; |
| 132 | if (obj) { |
| 133 | if (obj == this) { |
| 134 | FatalError("Error", "Group %d: GetDesc() including copy of itself", GetID()); |
| 135 | } |
| 136 | desc.children.resize(desc.children.size() + 1); |
| 137 | obj->GetDesc(desc.children.back()); |
| 138 | } |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | void Group::InitRelMats() { |
| 143 | for (auto& i : children) { |
no test coverage detected