Skip to content

Commit

Permalink
fix SpineSynchronizerPlugin not syncing with correct component
Browse files Browse the repository at this point in the history
  • Loading branch information
jabuwu committed Oct 26, 2022
1 parent 1065a3f commit f50a65e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/entity_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@ impl<T: Component> Default for SpineSynchronizerPlugin<T> {
impl<T: Component> Plugin for SpineSynchronizerPlugin<T> {
fn build(&self, app: &mut App) {
app.add_system(
spine_sync_entities::<SpineSync>
spine_sync_entities::<T>
.label(SpineSynchronizerSystem::<T>::SyncEntities)
.after(SpineSystem::Update),
)
.add_system(
spine_sync_bones::<SpineSync>
spine_sync_bones::<T>
.label(SpineSynchronizerSystem::<T>::SyncBones)
.after(SpineSynchronizerSystem::<T>::SyncEntities),
)
.add_system(
spine_sync_entities_applied::<SpineSync>
spine_sync_entities_applied::<T>
.label(SpineSynchronizerSystem::<T>::SyncEntitiesApplied)
.after(SpineSynchronizerSystem::<T>::SyncBones)
.before(SpineSystem::Render),
Expand Down

0 comments on commit f50a65e

Please sign in to comment.