You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
add gui_drag_threshold for viewports
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user