@quenty/animations 8.22.3-canary.99eacfd.0 → 8.22.3

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,12 +3,12 @@
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
- ## [8.22.3-canary.99eacfd.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/animations@8.22.2...@quenty/animations@8.22.3-canary.99eacfd.0) (2025-12-12)
6
+ ## [8.22.3](https://github.com/Quenty/NevermoreEngine/compare/@quenty/animations@8.22.2...@quenty/animations@8.22.3) (2025-12-13)
7
7
 
8
8
 
9
9
  ### Bug Fixes
10
10
 
11
- * Check Looped after loaded ([99eacfd](https://github.com/Quenty/NevermoreEngine/commit/99eacfd66c3484684fb82fb4655c76afb85c5f81))
11
+ * Small patches to nevermore libraries ([#614](https://github.com/Quenty/NevermoreEngine/issues/614)) ([6eeb33b](https://github.com/Quenty/NevermoreEngine/commit/6eeb33b9d215d3d753a433e4c612f391bcc0d286))
12
12
 
13
13
 
14
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/animations",
3
- "version": "8.22.3-canary.99eacfd.0",
3
+ "version": "8.22.3",
4
4
  "description": "Utility methods for playing back animations on Roblox",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -25,21 +25,20 @@
25
25
  "Quenty"
26
26
  ],
27
27
  "dependencies": {
28
- "@quenty/baseobject": "10.9.0",
29
- "@quenty/enumutils": "3.4.2",
30
- "@quenty/humanoidanimatorutils": "3.2.0",
31
- "@quenty/instanceutils": "13.20.2",
32
- "@quenty/loader": "10.9.0",
33
- "@quenty/maid": "3.5.0",
34
- "@quenty/promise": "10.12.0",
35
- "@quenty/promisemaid": "5.12.0",
36
- "@quenty/rbxasset": "5.10.0",
37
- "@quenty/rx": "13.20.0",
38
- "@quenty/signal": "7.11.1",
39
- "@quenty/valueobject": "13.21.2"
28
+ "@quenty/baseobject": "^10.9.0",
29
+ "@quenty/enumutils": "^3.4.2",
30
+ "@quenty/humanoidanimatorutils": "^3.2.0",
31
+ "@quenty/loader": "^10.9.0",
32
+ "@quenty/maid": "^3.5.0",
33
+ "@quenty/promise": "^10.12.0",
34
+ "@quenty/promisemaid": "^5.12.0",
35
+ "@quenty/rbxasset": "^5.10.0",
36
+ "@quenty/rx": "^13.20.0",
37
+ "@quenty/signal": "^7.11.1",
38
+ "@quenty/valueobject": "^13.21.2"
40
39
  },
41
40
  "publishConfig": {
42
41
  "access": "public"
43
42
  },
44
- "gitHead": "99eacfd66c3484684fb82fb4655c76afb85c5f81"
43
+ "gitHead": "08c1d0559af2bbcece6d586897c91a630dfb3f51"
45
44
  }
@@ -16,7 +16,6 @@ local Maid = require("Maid")
16
16
  local Promise = require("Promise")
17
17
  local PromiseMaidUtils = require("PromiseMaidUtils")
18
18
  local RbxAssetUtils = require("RbxAssetUtils")
19
- local RxInstanceUtils = require("RxInstanceUtils")
20
19
  local ValueObject = require("ValueObject")
21
20
 
22
21
  local AnimationSlotPlayer = setmetatable({}, BaseObject)
@@ -255,6 +254,9 @@ function AnimationSlotPlayer.Play(
255
254
  priority = priority or self._defaultAnimationPriority.Value
256
255
  weight = weight or 1 -- We need to explicitly adjust the weight here
257
256
 
257
+ -- Make sure we stop our last animation fully
258
+ self._maid._current = nil
259
+
258
260
  local topMaid = Maid.new()
259
261
 
260
262
  local animationId = RbxAssetUtils.toRbxAssetId(id)
@@ -288,17 +290,15 @@ function AnimationSlotPlayer.Play(
288
290
  end
289
291
  end)
290
292
 
291
- -- This is a hack to ensure that animations stop at a set rate instead of roblox's weird default faded time
292
- maid:GivePromise(AnimationPromiseUtils.promiseLoaded(track)):Then(function()
293
- maid:GiveTask(RxInstanceUtils.observePropertyBrio(track, "Looped", function(looped)
294
- return not looped
295
- end):Subscribe(function()
293
+ if not track.Looped then
294
+ -- This is a hack to ensure that animations stop at a set rate instead of roblox's weird default faded time
295
+ maid:GivePromise(AnimationPromiseUtils.promiseLoaded(track)):Then(function()
296
296
  -- This is very very sad...
297
297
  maid:GiveTask(task.delay(track.Length - track.TimePosition - 2 / 60, function()
298
298
  track:Stop(fadeTime or self._defaultFadeTime.Value)
299
299
  end))
300
- end))
301
- end)
300
+ end)
301
+ end
302
302
 
303
303
  maid:GiveTask(function()
304
304
  local stopFadeTime = fadeTime or self._defaultFadeTime.Value