Allow to override editor settings per project
This commit is contained in:
parent
64b09905c7
commit
b41d6ecf8c
22 changed files with 306 additions and 21 deletions
|
|
@ -770,6 +770,12 @@ void EditorNode::_notification(int p_what) {
|
|||
EditorFileSystem::get_singleton()->connect("filesystem_changed", callable_mp(this, &EditorNode::_execute_upgrades), CONNECT_ONE_SHOT);
|
||||
EditorFileSystem::get_singleton()->scan();
|
||||
}
|
||||
|
||||
if (settings_overrides_changed) {
|
||||
EditorSettings::get_singleton()->notify_changes();
|
||||
EditorSettings::get_singleton()->emit_signal(SNAME("settings_changed"));
|
||||
settings_overrides_changed = false;
|
||||
}
|
||||
} break;
|
||||
|
||||
case NOTIFICATION_ENTER_TREE: {
|
||||
|
|
@ -7368,6 +7374,15 @@ GameViewPluginBase *get_game_view_plugin() {
|
|||
}
|
||||
#endif
|
||||
|
||||
void EditorNode::open_setting_override(const String &p_property) {
|
||||
editor_settings_dialog->hide();
|
||||
project_settings_editor->popup_for_override(p_property);
|
||||
}
|
||||
|
||||
void EditorNode::notify_settings_overrides_changed() {
|
||||
settings_overrides_changed = true;
|
||||
}
|
||||
|
||||
EditorNode::EditorNode() {
|
||||
DEV_ASSERT(!singleton);
|
||||
singleton = this;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue