| 86 | } |
| 87 | |
| 88 | void ObjectModifyingUndoStep::getModifiedObjects(int part_index, ObjectSet& out) const |
| 89 | { |
| 90 | if (part_index == getPartIndex()) |
| 91 | { |
| 92 | MapPart* const map_part = map->getPart(part_index); |
| 93 | for (int object_index : modified_objects) |
| 94 | { |
| 95 | Q_ASSERT(object_index >= 0 && object_index < map_part->getNumObjects()); |
| 96 | out.insert(map_part->getObject(object_index)); |
| 97 | } |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | |
| 102 |