diff --git a/source/MaterialXGraphEditor/Main.cpp b/source/MaterialXGraphEditor/Main.cpp index 754d766798..54d99c791b 100644 --- a/source/MaterialXGraphEditor/Main.cpp +++ b/source/MaterialXGraphEditor/Main.cpp @@ -199,6 +199,12 @@ int main(int argc, char* const argv[]) ImGuiIO& io = ImGui::GetIO(); io.Fonts->AddFontDefault(); + // Set ini and log filename to NULL. This will prevent the automatic creation of imgui.ini + // in the same folder as the saved material. + // TODO: Consider setting the ini and log file paths to an application directory. + io.IniFilename = NULL; + io.LogFilename = NULL; + mx::FilePath configPath = getConfigPath(); if (!configPath.isEmpty()) {