From d06c526fb06714e16207aa1292146bc283b99e31 Mon Sep 17 00:00:00 2001 From: jsjtxietian Date: Wed, 31 Jan 2024 12:36:23 +0800 Subject: [PATCH] Fix `TextureRegionEditor::_pan_callback` deferred called with only one arg --- editor/plugins/texture_region_editor_plugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/plugins/texture_region_editor_plugin.cpp b/editor/plugins/texture_region_editor_plugin.cpp index 09f6bf884e..56b5930aa3 100644 --- a/editor/plugins/texture_region_editor_plugin.cpp +++ b/editor/plugins/texture_region_editor_plugin.cpp @@ -226,8 +226,8 @@ void TextureRegionEditor::_texture_overlay_draw() { hscroll->set_value((hscroll->get_min() + hscroll->get_max() - hscroll->get_page()) / 2); vscroll->set_value((vscroll->get_min() + vscroll->get_max() - vscroll->get_page()) / 2); // This ensures that the view is updated correctly. - callable_mp(this, &TextureRegionEditor::_pan_callback).bind(Vector2(1, 0)).call_deferred(); - callable_mp(this, &TextureRegionEditor::_scroll_changed).bind(0.0).call_deferred(); + callable_mp(this, &TextureRegionEditor::_pan_callback).call_deferred(Vector2(1, 0), Ref()); + callable_mp(this, &TextureRegionEditor::_scroll_changed).call_deferred(0.0); request_center = false; }