You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Add vararg call() method to C++ Callable
This commit is contained in:
@@ -1072,12 +1072,7 @@ void TextEdit::_notification(int p_what) {
|
||||
if (rtl) {
|
||||
gutter_rect.position.x = size.width - gutter_rect.position.x - gutter_rect.size.x;
|
||||
}
|
||||
|
||||
Variant args[3] = { line, g, Rect2(gutter_rect) };
|
||||
const Variant *argp[] = { &args[0], &args[1], &args[2] };
|
||||
Callable::CallError ce;
|
||||
Variant ret;
|
||||
gutter.custom_draw_callback.callp(argp, 3, ret, ce);
|
||||
gutter.custom_draw_callback.call(line, g, Rect2(gutter_rect));
|
||||
}
|
||||
} break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user