Skip to content

Commit

Permalink
version bump: 0.8.16; removed premature cleanup from generate systems;
Browse files Browse the repository at this point in the history
  • Loading branch information
dyonng committed Apr 17, 2023
1 parent 2d5f552 commit 1af609d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [0.8.16] 2023.04.17

### Fixed

- Spline Movement wasn't working due to premature cleanup

## [0.8.15] 2023.04.03

### Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ protected override void OnUpdate()
{
var forward = math.normalize(tweenInfo.SplineTweenInfo.Spline.EvaluateTangent(splinePosition));
var up = tweenInfo.SplineTweenInfo.Spline.EvaluateUpVector(splinePosition);
localTransformRef.ValueRW.Rotation = quaternion.LookRotation(forward, up);
localTransformRef.ValueRW.Rotation = math.normalize(quaternion.LookRotation(forward, up));
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ protected override void OnUpdate()
info.SetTweenId(tween.Id);
info.SetTweenInfo(commandRef.ValueRO.GetTweenStart(), commandRef.ValueRO.GetTweenEnd());

commandRef.ValueRW.Cleanup();
ecb.AddComponent(entity, info);
ecb.RemoveComponent<TTweenCommand>(entity);
}
Expand Down
1 change: 0 additions & 1 deletion Runtime/Tweens/Systems/Control/TweenGenerateSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ public void Execute(in ArchetypeChunk chunk, int chunkIndex, bool useEnabledMask
TTweenInfo info = default;
info.SetTweenId(tween.Id);
info.SetTweenInfo(command.GetTweenStart(), command.GetTweenEnd());
command.Cleanup();
ParallelWriter.AddComponent(chunkIndex, entity, info);
ParallelWriter.RemoveComponent<TTweenCommand>(chunkIndex, entity);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.dyonng.dotstween",
"version": "0.8.15",
"version": "0.8.16",
"displayName": "DOTS Tween",
"description": "Tween library for Unity ECS/DOTS.",
"unity": "2022.2",
Expand Down

0 comments on commit 1af609d

Please sign in to comment.