mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
add gui_drag_threshold for viewports
This commit is contained in:
parent
ab6c6eece8
commit
89aa5137b8
6 changed files with 29 additions and 1 deletions
|
|
@ -4414,6 +4414,9 @@ int Main::start() {
|
|||
bool snap_controls = GLOBAL_GET("gui/common/snap_controls_to_pixels");
|
||||
sml->get_root()->set_snap_controls_to_pixels(snap_controls);
|
||||
|
||||
int drag_threshold = GLOBAL_GET("gui/common/drag_threshold");
|
||||
sml->get_root()->set_drag_threshold(drag_threshold);
|
||||
|
||||
bool font_oversampling = GLOBAL_GET("gui/fonts/dynamic_fonts/use_oversampling");
|
||||
sml->get_root()->set_use_oversampling(font_oversampling);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue