From 882a4f890620df1b029bc5de0aa58c72dd087d61 Mon Sep 17 00:00:00 2001 From: Tomasz Chabora Date: Sun, 6 Dec 2020 16:09:18 +0100 Subject: Port remaining connections to callable_mp --- editor/plugins/texture_3d_editor_plugin.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'editor/plugins/texture_3d_editor_plugin.cpp') diff --git a/editor/plugins/texture_3d_editor_plugin.cpp b/editor/plugins/texture_3d_editor_plugin.cpp index 3ea62184c6..4b2f28658a 100644 --- a/editor/plugins/texture_3d_editor_plugin.cpp +++ b/editor/plugins/texture_3d_editor_plugin.cpp @@ -138,10 +138,6 @@ void Texture3DEditor::edit(Ref p_texture) { } } -void Texture3DEditor::_bind_methods() { - ClassDB::bind_method(D_METHOD("_layer_changed"), &Texture3DEditor::_layer_changed); -} - Texture3DEditor::Texture3DEditor() { set_texture_repeat(TextureRepeat::TEXTURE_REPEAT_ENABLED); set_custom_minimum_size(Size2(1, 150)); @@ -173,7 +169,7 @@ Texture3DEditor::Texture3DEditor() { info->add_theme_constant_override("shadow_offset_y", 2); setting = false; - layer->connect("value_changed", Callable(this, "_layer_changed")); + layer->connect("value_changed", callable_mp(this, &Texture3DEditor::_layer_changed)); } Texture3DEditor::~Texture3DEditor() { -- cgit v1.2.3