Support 'mirror' connection editing. Can be toggled off via checkbox

This commit is contained in:
Marcus Huderle
2018-03-12 20:51:27 -07:00
parent ad7b9ca7b3
commit 1a10eac29f
5 changed files with 133 additions and 9 deletions

View File

@@ -39,7 +39,8 @@ Map* Project::loadMap(QString map_name) {
Map *map;
if (map_cache->contains(map_name)) {
map = map_cache->value(map_name);
if (map->hasUnsavedChanges()) {
// TODO: uncomment when undo/redo history is fully implemented for all actions.
if (true/*map->hasUnsavedChanges()*/) {
return map;
}
} else {
@@ -1260,7 +1261,6 @@ void Project::loadObjectPixmaps(QList<Event*> objects) {
}
if (event_type == "object") {
int sprite_id = constants.value(object->get("sprite"));
QString info_label = pointers.value(sprite_id).replace("&", "");