Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

Fix project reload fail

Abel You2333a7626705
diff --git a/toonz/sources/toonzlib/tproject.cpp b/toonz/sources/toonzlib/tproject.cpp
index f3611f2ae..fab1bb376 100644
--- a/toonz/sources/toonzlib/tproject.cpp
+++ b/toonz/sources/toonzlib/tproject.cpp
@@ -973,7 +973,7 @@ void TProjectManager::getFolderNames(std::vector<std::string> &names) {
void TProjectManager::setCurrentProjectPath(const TFilePath &fp) {
assert(TProject::isAProjectPath(fp));
currentProjectPath = ::to_string(fp.getWideString());
- currentProject = std::make_shared<TProject>();
+ currentProject = nullptr;// init this pointer in getCurrentProject()
notifyListeners();
}