Skip to content

Commit

Permalink
Prevent generation of imgui.ini after saving material and closing Gra…
Browse files Browse the repository at this point in the history
…ph Editor
  • Loading branch information
iukpo-lucasfilm authored and Ihimu Ukpo committed Oct 13, 2023
1 parent c7f01d8 commit 7f0190a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/MaterialXGraphEditor/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
{
Expand Down

0 comments on commit 7f0190a

Please sign in to comment.