Skip to content

Commit

Permalink
Move UpgradeLegacyData() after ReloadAllImported().
Browse files Browse the repository at this point in the history
Before this commit, constraints would be pruned in assemblies,
because imported entities are missing in the UpgradeLegacyData()
call.
  • Loading branch information
whitequark committed Nov 27, 2016
1 parent 8761060 commit 3aabc5a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions src/file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -513,8 +513,6 @@ bool SolveSpaceUI::LoadFromFile(const std::string &filename) {
}
}

UpgradeLegacyData();

return true;
}

Expand Down
1 change: 1 addition & 0 deletions src/solvespace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ bool SolveSpaceUI::OpenFile(const std::string &filename) {
saveFile = "";
NewFile();
}
UpgradeLegacyData();
AfterNewFile();
unsaved = autosaveLoaded;
return success;
Expand Down

0 comments on commit 3aabc5a

Please sign in to comment.