-
Notifications
You must be signed in to change notification settings - Fork 358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Graph Editor is creating imgui.ini file #1471
Comments
Dear Imgui itself reads the ini file. When new windows and panels are created it uses that information to restore the state and panel layout of the most recent previous user session. Deleting the file restores the window layout to the default arrangement indicated in the viewer's source code. |
The file seems to never be modified nor does changing the values in it affect the graph view when i restart / open the graph editor again. But even if the file would be used it shouldnt be created in each directory i ever opened a materialx file in |
Yes, that is definitely the default behavior of Dear ImGui. There is a discussion about it here, ocornut/imgui#4294 including various solutions. Perhaps the thing to do is to get some consensus on the behavior. For example, it might make sense to always store the ini file in a platform specific AppData directory. This might be a good topic to bring up in the Academy Software Foundation Slack, in the #materialx channel. Perhaps the collective wisdom there might help come to a consensus about a good behavior. |
My initial thought is that we should disable the automatic writing/reading of INI files in the MaterialX Graph Editor, since it's not capturing useful information about the user's session state. As an example, here's the output INI file in a recent session, where it's only capturing the state of the default debug window, and not the state of active user windows:
From the discussion thread that @meshula links above, here are instructions on how we can potentially disable this in the MaterialX Graph Editor: |
A related PR is #1257 I'd set up the pathing to use default config locations on posix systems. I'd left windows alone for lack of a system to test the conventions. It would be good if someone could make windows have parity. |
To disable, it looks like you can just null the filenames as mentioned here , but you need a reference, which is what's done in Main.cpp. So we'd need these lines:
This will override both the ini and log file which is set in ImuiIO constructor:
|
Thanks to @iukpo-lucasfilm for addressing this in #1570, and thanks as well to @marwie for the report! |
Steps to reproduce:
imgui.ini
Windows 10
Also note: the imgui.ini file contains information about position and size of the window but it doesnt seem to be used at all
The text was updated successfully, but these errors were encountered: