You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Signals: Port connect calls to use callable_mp
Remove now unnecessary bindings of signal callbacks in the public API. There might be some false positives that need rebinding if they were meant to be public. No regular expressions were harmed in the making of this commit. (Nah, just kidding.)
This commit is contained in:
@@ -330,11 +330,10 @@ void AnimationTrackEditAudio::set_node(Object *p_object) {
|
||||
}
|
||||
|
||||
void AnimationTrackEditAudio::_bind_methods() {
|
||||
ClassDB::bind_method("_preview_changed", &AnimationTrackEditAudio::_preview_changed);
|
||||
}
|
||||
|
||||
AnimationTrackEditAudio::AnimationTrackEditAudio() {
|
||||
AudioStreamPreviewGenerator::get_singleton()->connect_compat("preview_updated", this, "_preview_changed");
|
||||
AudioStreamPreviewGenerator::get_singleton()->connect("preview_updated", callable_mp(this, &AnimationTrackEditAudio::_preview_changed));
|
||||
}
|
||||
|
||||
/// SPRITE FRAME / FRAME_COORDS ///
|
||||
@@ -945,11 +944,10 @@ void AnimationTrackEditTypeAudio::draw_key(int p_index, float p_pixels_sec, int
|
||||
}
|
||||
|
||||
void AnimationTrackEditTypeAudio::_bind_methods() {
|
||||
ClassDB::bind_method("_preview_changed", &AnimationTrackEditTypeAudio::_preview_changed);
|
||||
}
|
||||
|
||||
AnimationTrackEditTypeAudio::AnimationTrackEditTypeAudio() {
|
||||
AudioStreamPreviewGenerator::get_singleton()->connect_compat("preview_updated", this, "_preview_changed");
|
||||
AudioStreamPreviewGenerator::get_singleton()->connect("preview_updated", callable_mp(this, &AnimationTrackEditTypeAudio::_preview_changed));
|
||||
len_resizing = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user