diff options
Diffstat (limited to 'editor/plugins/tiles/tiles_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/tiles/tiles_editor_plugin.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/editor/plugins/tiles/tiles_editor_plugin.cpp b/editor/plugins/tiles/tiles_editor_plugin.cpp index 4d4b1fa734..e50d21bbf8 100644 --- a/editor/plugins/tiles/tiles_editor_plugin.cpp +++ b/editor/plugins/tiles/tiles_editor_plugin.cpp @@ -134,11 +134,7 @@ void TilesEditorUtils::_thread() { Ref<Image> image = viewport->get_texture()->get_image(); // Find the index for the given pattern. TODO: optimize. - Variant args[] = { item.pattern, ImageTexture::create_from_image(image) }; - const Variant *args_ptr[] = { &args[0], &args[1] }; - Variant r; - Callable::CallError error; - item.callback.callp(args_ptr, 2, r, error); + item.callback.call(item.pattern, ImageTexture::create_from_image(image)); viewport->queue_free(); } |