Material: Material Preferences
Updates the material preferences including selecting a default material Preferences adds some options for what gets displayed in the Materials editor. The option to use the legacy editor is removed in favour of the new editor. A new preference page has been added that allows the user to select a default material. This will then be assigned to any newly created object. In support of this, a new widget PrefsMaterialTreeWidget has been added as an extension of the MaterialTreeWidget to automatically save and restore the selected material.
This commit is contained in:
committed by
Chris Hennes
parent
6c4f76a8a5
commit
4dcd810ac5
@@ -48,9 +48,14 @@ void DlgSettingsMaterial::saveSettings()
|
||||
ui->cb_show_empty_libraries->onSave();
|
||||
ui->cb_show_empty_folders->onSave();
|
||||
ui->cb_show_legacy->onSave();
|
||||
ui->cb_show_favorites_editor->onSave();
|
||||
ui->cb_show_recent_editor->onSave();
|
||||
ui->cb_show_empty_libraries_editor->onSave();
|
||||
ui->cb_show_empty_folders_editor->onSave();
|
||||
ui->cb_show_legacy_editor->onSave();
|
||||
|
||||
// Temporary for testing
|
||||
ui->cb_legacy_editor->onSave();
|
||||
// ui->cb_legacy_editor->onSave();
|
||||
}
|
||||
|
||||
void DlgSettingsMaterial::loadSettings()
|
||||
@@ -67,9 +72,14 @@ void DlgSettingsMaterial::loadSettings()
|
||||
ui->cb_show_empty_libraries->onRestore();
|
||||
ui->cb_show_empty_folders->onRestore();
|
||||
ui->cb_show_legacy->onRestore();
|
||||
ui->cb_show_favorites_editor->onRestore();
|
||||
ui->cb_show_recent_editor->onRestore();
|
||||
ui->cb_show_empty_libraries_editor->onRestore();
|
||||
ui->cb_show_empty_folders_editor->onRestore();
|
||||
ui->cb_show_legacy_editor->onRestore();
|
||||
|
||||
// Temporary for testing
|
||||
ui->cb_legacy_editor->onRestore();
|
||||
// ui->cb_legacy_editor->onRestore();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user