@@ -220,7 +220,7 @@ Rect2 AnimationTrackEditAudio::get_key_rect(int p_index, float p_pixels_sec) {
220
220
221
221
Ref<AudioStream> stream = object->call (" get_stream" );
222
222
223
- if (! stream.is_valid ()) {
223
+ if (stream.is_null ()) {
224
224
return AnimationTrackEdit::get_key_rect (p_index, p_pixels_sec);
225
225
}
226
226
@@ -260,7 +260,7 @@ void AnimationTrackEditAudio::draw_key(int p_index, float p_pixels_sec, int p_x,
260
260
261
261
Ref<AudioStream> stream = object->call (" get_stream" );
262
262
263
- if (! stream.is_valid ()) {
263
+ if (stream.is_null ()) {
264
264
AnimationTrackEdit::draw_key (p_index, p_pixels_sec, p_x, p_selected, p_clip_left, p_clip_right);
265
265
return ;
266
266
}
@@ -379,7 +379,7 @@ Rect2 AnimationTrackEditSpriteFrame::get_key_rect(int p_index, float p_pixels_se
379
379
380
380
if (Object::cast_to<Sprite2D>(object) || Object::cast_to<Sprite3D>(object)) {
381
381
Ref<Texture2D> texture = object->call (" get_texture" );
382
- if (! texture.is_valid ()) {
382
+ if (texture.is_null ()) {
383
383
return AnimationTrackEdit::get_key_rect (p_index, p_pixels_sec);
384
384
}
385
385
@@ -422,7 +422,7 @@ Rect2 AnimationTrackEditSpriteFrame::get_key_rect(int p_index, float p_pixels_se
422
422
}
423
423
424
424
Ref<Texture2D> texture = sf->get_frame_texture (animation_name, frame);
425
- if (! texture.is_valid ()) {
425
+ if (texture.is_null ()) {
426
426
return AnimationTrackEdit::get_key_rect (p_index, p_pixels_sec);
427
427
}
428
428
@@ -456,7 +456,7 @@ void AnimationTrackEditSpriteFrame::draw_key(int p_index, float p_pixels_sec, in
456
456
457
457
if (Object::cast_to<Sprite2D>(object) || Object::cast_to<Sprite3D>(object)) {
458
458
texture = object->call (" get_texture" );
459
- if (! texture.is_valid ()) {
459
+ if (texture.is_null ()) {
460
460
AnimationTrackEdit::draw_key (p_index, p_pixels_sec, p_x, p_selected, p_clip_left, p_clip_right);
461
461
return ;
462
462
}
@@ -514,7 +514,7 @@ void AnimationTrackEditSpriteFrame::draw_key(int p_index, float p_pixels_sec, in
514
514
}
515
515
516
516
texture = sf->get_frame_texture (animation_name, frame);
517
- if (! texture.is_valid ()) {
517
+ if (texture.is_null ()) {
518
518
AnimationTrackEdit::draw_key (p_index, p_pixels_sec, p_x, p_selected, p_clip_left, p_clip_right);
519
519
return ;
520
520
}
@@ -808,7 +808,7 @@ int AnimationTrackEditTypeAudio::get_key_height() const {
808
808
Rect2 AnimationTrackEditTypeAudio::get_key_rect (int p_index, float p_pixels_sec) {
809
809
Ref<AudioStream> stream = get_animation ()->audio_track_get_key_stream (get_track (), p_index);
810
810
811
- if (! stream.is_valid ()) {
811
+ if (stream.is_null ()) {
812
812
return AnimationTrackEdit::get_key_rect (p_index, p_pixels_sec);
813
813
}
814
814
@@ -841,7 +841,7 @@ bool AnimationTrackEditTypeAudio::is_key_selectable_by_distance() const {
841
841
842
842
void AnimationTrackEditTypeAudio::draw_key (int p_index, float p_pixels_sec, int p_x, bool p_selected, int p_clip_left, int p_clip_right) {
843
843
Ref<AudioStream> stream = get_animation ()->audio_track_get_key_stream (get_track (), p_index);
844
- if (! stream.is_valid ()) {
844
+ if (stream.is_null ()) {
845
845
AnimationTrackEdit::draw_key (p_index, p_pixels_sec, p_x, p_selected, p_clip_left, p_clip_right); // Draw diamond.
846
846
return ;
847
847
}
@@ -1025,7 +1025,7 @@ void AnimationTrackEditTypeAudio::gui_input(const Ref<InputEvent> &p_event) {
1025
1025
for (int i = 0 ; i < get_animation ()->track_get_key_count (get_track ()); i++) {
1026
1026
Ref<AudioStream> stream = get_animation ()->audio_track_get_key_stream (get_track (), i);
1027
1027
1028
- if (! stream.is_valid ()) {
1028
+ if (stream.is_null ()) {
1029
1029
continue ;
1030
1030
}
1031
1031
0 commit comments