mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Use check_changed_settings_in_group() everywhere
This commit is contained in:
parent
0246230e2b
commit
a031911c82
36 changed files with 213 additions and 69 deletions
|
@ -4307,11 +4307,15 @@ void VisualShaderEditor::_notification(int p_what) {
|
|||
} break;
|
||||
|
||||
case EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED: {
|
||||
graph->get_panner()->setup((ViewPanner::ControlScheme)EDITOR_GET("editors/panning/sub_editors_panning_scheme").operator int(), ED_GET_SHORTCUT("canvas_item_editor/pan_view"), bool(EDITOR_GET("editors/panning/simple_panning")));
|
||||
graph->set_warped_panning(bool(EDITOR_GET("editors/panning/warped_mouse_panning")));
|
||||
graph->set_minimap_opacity(EDITOR_GET("editors/visual_editors/minimap_opacity"));
|
||||
graph->set_connection_lines_curvature(EDITOR_GET("editors/visual_editors/lines_curvature"));
|
||||
_update_graph();
|
||||
if (EditorSettings::get_singleton()->check_changed_settings_in_group("editors/panning")) {
|
||||
graph->get_panner()->setup((ViewPanner::ControlScheme)EDITOR_GET("editors/panning/sub_editors_panning_scheme").operator int(), ED_GET_SHORTCUT("canvas_item_editor/pan_view"), bool(EDITOR_GET("editors/panning/simple_panning")));
|
||||
graph->set_warped_panning(bool(EDITOR_GET("editors/panning/warped_mouse_panning")));
|
||||
}
|
||||
if (EditorSettings::get_singleton()->check_changed_settings_in_group("editors/visual_editors")) {
|
||||
graph->set_minimap_opacity(EDITOR_GET("editors/visual_editors/minimap_opacity"));
|
||||
graph->set_connection_lines_curvature(EDITOR_GET("editors/visual_editors/lines_curvature"));
|
||||
_update_graph();
|
||||
}
|
||||
} break;
|
||||
|
||||
case NOTIFICATION_ENTER_TREE: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue