You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-04 17:04:49 +00:00
Allow to override editor settings per project
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user