| 598 | |
| 599 | |
| 600 | void MapEditorToolBase::resetEditedObjects() |
| 601 | { |
| 602 | Q_ASSERT(editingInProgress()); |
| 603 | |
| 604 | for (auto& edited_item : edited_items) |
| 605 | { |
| 606 | auto object = edited_item.active_object; |
| 607 | object->copyFrom(*edited_item.duplicate); |
| 608 | object->setMap(nullptr); // This is to keep the renderables out of the normal map. |
| 609 | } |
| 610 | } |
| 611 | |
| 612 | |
| 613 | void MapEditorToolBase::reapplyConstraintHelpers() |