@quenty/animations 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.2.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/animations@1.1.0...@quenty/animations@1.2.0) (2023-07-28)
7
+
8
+ **Note:** Version bump only for package @quenty/animations
9
+
10
+
11
+
12
+
13
+
6
14
  # 1.1.0 (2023-07-10)
7
15
 
8
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/animations",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Utility methods for playing back animations on Roblox",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -28,11 +28,11 @@
28
28
  "@quenty/enumutils": "^3.1.0",
29
29
  "@quenty/humanoidanimatorutils": "^2.2.0",
30
30
  "@quenty/loader": "^6.2.1",
31
- "@quenty/promisemaid": "^1.1.0",
31
+ "@quenty/promisemaid": "^1.2.0",
32
32
  "@quenty/rbxasset": "^1.1.0"
33
33
  },
34
34
  "publishConfig": {
35
35
  "access": "public"
36
36
  },
37
- "gitHead": "6c9093879c4547ca55a7b42842e35ad277cc0f08"
37
+ "gitHead": "539b6bcf1266fb18e143059d08381654cca200bd"
38
38
  }
@@ -9,7 +9,7 @@ local PromiseMaidUtils = require("PromiseMaidUtils")
9
9
 
10
10
  local AnimationPromiseUtils = {}
11
11
 
12
- function AnimationPromiseUtils.promiseFinished(animationTrack)
12
+ function AnimationPromiseUtils.promiseFinished(animationTrack, endMarkerName)
13
13
  local promise = Promise.new()
14
14
 
15
15
  PromiseMaidUtils.whilePromise(promise, function(maid)
@@ -24,6 +24,12 @@ function AnimationPromiseUtils.promiseFinished(animationTrack)
24
24
  maid:GiveTask(animationTrack.Destroying:Connect(function()
25
25
  promise:Resolve()
26
26
  end))
27
+
28
+ if endMarkerName then
29
+ maid:GiveTask(animationTrack:GetMarkerReachedSignal(endMarkerName):Connect(function()
30
+ promise:Resolve()
31
+ end))
32
+ end
27
33
  end)
28
34
 
29
35
  return promise