Skip to content

Commit

Permalink
Godot bug workaround for animation playback tracks
Browse files Browse the repository at this point in the history
Godot 4.2.2 introduced Godot #91554
(godotengine/godot#91554), a bug with AnimationPlayer
where AnimationPlaybackTrack doesn't call Play properly on the targeted
AnimationPlayer if the track keyframe is set to 0.

A time of 0.001 works.
  • Loading branch information
Poobslag committed May 16, 2024
1 parent 126e2ab commit f294130
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions project/src/main/comic/World1ComicPage.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"clips": PackedStringArray("play", "[stop]"),
"times": PackedFloat32Array(0, 4)
"times": PackedFloat32Array(0.001, 4)
}
tracks/3/type = "value"
tracks/3/imported = false
Expand Down Expand Up @@ -791,7 +791,7 @@ tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"clips": PackedStringArray("play", "[stop]"),
"times": PackedFloat32Array(0, 4)
"times": PackedFloat32Array(0.001, 4)
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_7nfju"]
Expand Down Expand Up @@ -1660,7 +1660,7 @@ tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"clips": PackedStringArray("play", "[stop]"),
"times": PackedFloat32Array(0, 5)
"times": PackedFloat32Array(0.001, 5)
}
tracks/3/type = "value"
tracks/3/imported = false
Expand All @@ -1682,7 +1682,7 @@ tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/keys = {
"clips": PackedStringArray("play", "[stop]"),
"times": PackedFloat32Array(0, 5)
"times": PackedFloat32Array(0.001, 5)
}
tracks/5/type = "animation"
tracks/5/imported = false
Expand Down
6 changes: 3 additions & 3 deletions project/src/main/comic/World2ComicPage.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ tracks/10/interp = 1
tracks/10/loop_wrap = true
tracks/10/keys = {
"clips": PackedStringArray("play", "[stop]"),
"times": PackedFloat32Array(0, 5)
"times": PackedFloat32Array(0.001, 5)
}
tracks/11/type = "value"
tracks/11/imported = false
Expand Down Expand Up @@ -807,7 +807,7 @@ tracks/8/interp = 1
tracks/8/loop_wrap = true
tracks/8/keys = {
"clips": PackedStringArray("play", "[stop]"),
"times": PackedFloat32Array(0, 4)
"times": PackedFloat32Array(0.001, 4)
}
tracks/9/type = "value"
tracks/9/imported = false
Expand Down Expand Up @@ -1644,7 +1644,7 @@ tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"clips": PackedStringArray("RESET", "play", "play", "play", "play"),
"times": PackedFloat32Array(0, 0.875, 1.375, 2.375, 2.875)
"times": PackedFloat32Array(0.001, 0.875, 1.375, 2.375, 2.875)
}
tracks/4/type = "value"
tracks/4/imported = false
Expand Down

0 comments on commit f294130

Please sign in to comment.