@quenty/animations 8.22.5 → 8.22.6

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,17 @@
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.6](https://github.com/Quenty/NevermoreEngine/compare/@quenty/animations@8.22.5...@quenty/animations@8.22.6) (2025-12-29)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Check Looped after loaded ([99eacfd](https://github.com/Quenty/NevermoreEngine/commit/99eacfd66c3484684fb82fb4655c76afb85c5f81))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [8.22.5](https://github.com/Quenty/NevermoreEngine/compare/@quenty/animations@8.22.4...@quenty/animations@8.22.5) (2025-12-29)
7
18
 
8
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/animations",
3
- "version": "8.22.5",
3
+ "version": "8.22.6",
4
4
  "description": "Utility methods for playing back animations on Roblox",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -28,6 +28,7 @@
28
28
  "@quenty/baseobject": "^10.9.0",
29
29
  "@quenty/enumutils": "^3.4.2",
30
30
  "@quenty/humanoidanimatorutils": "^3.2.0",
31
+ "@quenty/instanceutils": "^13.20.3",
31
32
  "@quenty/loader": "^10.9.0",
32
33
  "@quenty/maid": "^3.5.0",
33
34
  "@quenty/promise": "^10.12.1",
@@ -40,5 +41,5 @@
40
41
  "publishConfig": {
41
42
  "access": "public"
42
43
  },
43
- "gitHead": "e4614dfea3bf2580ec2b10552c311b273ed1387c"
44
+ "gitHead": "20ade78b3a24553734d980ad1712c988b21b371e"
44
45
  }
@@ -16,6 +16,7 @@ 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")
19
20
  local ValueObject = require("ValueObject")
20
21
 
21
22
  local AnimationSlotPlayer = setmetatable({}, BaseObject)
@@ -323,15 +324,17 @@ function AnimationSlotPlayer.Play(
323
324
  end
324
325
  end)
325
326
 
326
- if not track.Looped then
327
- -- This is a hack to ensure that animations stop at a set rate instead of roblox's weird default faded time
328
- maid:GivePromise(AnimationPromiseUtils.promiseLoaded(track)):Then(function()
327
+ -- This is a hack to ensure that animations stop at a set rate instead of roblox's weird default faded time
328
+ maid:GivePromise(AnimationPromiseUtils.promiseLoaded(track)):Then(function()
329
+ maid:GiveTask(RxInstanceUtils.observePropertyBrio(track, "Looped", function(looped)
330
+ return not looped
331
+ end):Subscribe(function()
329
332
  -- This is very very sad...
330
333
  maid:GiveTask(task.delay(track.Length - track.TimePosition - 2 / 60, function()
331
334
  track:Stop(fadeTime or self._defaultFadeTime.Value)
332
335
  end))
333
- end)
334
- end
336
+ end))
337
+ end)
335
338
 
336
339
  maid:GiveTask(function()
337
340
  local stopFadeTime = fadeTime or self._defaultFadeTime.Value