Persist material editor column widths in preferences

MaterialBrowserWidth / MaterialPreviewWidth in preferences.ini, saved
from the live splitter positions on shutdown and restored (clamped to
the splitter ranges) at startup.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-05 15:54:06 +08:00
parent 42fd355c53
commit de94decf64
4 changed files with 38 additions and 2 deletions
+8
View File
@@ -44,6 +44,14 @@ public:
/// auto-loads it into the canvas.
void SetTargetPrimPath(const std::string& path);
/// Splitter-adjustable column widths, persisted in preferences.ini by
/// Application. Setter clamps to the same range as the splitters.
void GetColumnWidths(float& browserWidth, float& previewWidth) const {
browserWidth = m_browserWidth;
previewWidth = m_previewWidth;
}
void SetColumnWidths(float browserWidth, float previewWidth);
void Render();
private: