Replace SyncedAnimationGraph to BLTAnimationGraph.

This commit is contained in:
Martin Felis 2026-02-20 22:55:30 +01:00
parent 095f1e5d0c
commit c7660c7b19
2 changed files with 6 additions and 6 deletions

View File

@ -146,7 +146,7 @@ void BLTAnimationGraph::_graph_changed(const StringName &node_name) {
} }
void BLTAnimationGraph::_notification(int p_what) { void BLTAnimationGraph::_notification(int p_what) {
GodotProfileZone("SyncedAnimationGraph::_notification"); GodotProfileZone("BLTAnimationGraph::_notification");
switch (p_what) { switch (p_what) {
case NOTIFICATION_ENTER_TREE: { case NOTIFICATION_ENTER_TREE: {
@ -295,7 +295,7 @@ void BLTAnimationGraph::_process_graph(double p_delta, bool p_update_only) {
return; return;
} }
GodotProfileZone("SyncedAnimationGraph::_process_graph"); GodotProfileZone("BLTAnimationGraph::_process_graph");
_update_properties(); _update_properties();
@ -311,7 +311,7 @@ void BLTAnimationGraph::_process_graph(double p_delta, bool p_update_only) {
} }
void BLTAnimationGraph::_apply_animation_data(const AnimationData &output_data) const { void BLTAnimationGraph::_apply_animation_data(const AnimationData &output_data) const {
GodotProfileZone("SyncedAnimationGraph::_apply_animation_data"); GodotProfileZone("BLTAnimationGraph::_apply_animation_data");
for (const KeyValue<Animation::TypeHash, size_t> &K : output_data.value_buffer_offset) { for (const KeyValue<Animation::TypeHash, size_t> &K : output_data.value_buffer_offset) {
const AnimationData::TrackValue *track_value = output_data.get_value<AnimationData::TrackValue>(K.key); const AnimationData::TrackValue *track_value = output_data.get_value<AnimationData::TrackValue>(K.key);

View File

@ -6,7 +6,7 @@
namespace TestBlendalotAnimationGraph { namespace TestBlendalotAnimationGraph {
TEST_CASE("[SyncedAnimationGraph][SyncTrack] Basic") { TEST_CASE("[Blendalot][SyncTrack] Basic") {
SyncTrack track_a; SyncTrack track_a;
track_a.num_intervals = 2; track_a.num_intervals = 2;
track_a.duration = 2.0; track_a.duration = 2.0;
@ -84,7 +84,7 @@ TEST_CASE("[SyncedAnimationGraph][SyncTrack] Basic") {
} }
} }
TEST_CASE("[SyncedAnimationGraph][SyncTrack] Create Sync Track from markers") { TEST_CASE("[Blendalot][SyncTrack] Create Sync Track from markers") {
SyncTrack track = SyncTrack::create_from_markers(2.0f, { 0.9f, 0.2f }); SyncTrack track = SyncTrack::create_from_markers(2.0f, { 0.9f, 0.2f });
WHEN("Querying Ratios") { WHEN("Querying Ratios") {
@ -138,7 +138,7 @@ TEST_CASE("[SyncedAnimationGraph][SyncTrack] Create Sync Track from markers") {
} }
} }
TEST_CASE("[SyncedAnimationGraph][SyncTrack] Sync Track blending") { TEST_CASE("[Blendalot][SyncTrack] Sync Track blending") {
SyncTrack track_a = SyncTrack::create_from_markers(2.0, { 0., 0.6, 1.8 }); SyncTrack track_a = SyncTrack::create_from_markers(2.0, { 0., 0.6, 1.8 });
SyncTrack track_b = SyncTrack::create_from_markers(1.5f, { 1.05, 1.35, 0.3 }); SyncTrack track_b = SyncTrack::create_from_markers(1.5f, { 1.05, 1.35, 0.3 });