@quenty/rigbuilderutils 10.22.4-canary.99eacfd.0 → 10.22.4-canary.f294cf2.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 +5 -2
- package/package.json +7 -7
- package/src/Shared/RigBuilderUtils.lua +13 -11
package/CHANGELOG.md
CHANGED
|
@@ -3,9 +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
|
-
## [10.22.4-canary.
|
|
6
|
+
## [10.22.4-canary.f294cf2.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rigbuilderutils@10.22.3...@quenty/rigbuilderutils@10.22.4-canary.f294cf2.0) (2025-12-30)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Update typing to be more accurate ([e4c3d05](https://github.com/Quenty/NevermoreEngine/commit/e4c3d05a0aa9f45a37cbfa372c5e0d8a748c9323))
|
|
9
12
|
|
|
10
13
|
|
|
11
14
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/rigbuilderutils",
|
|
3
|
-
"version": "10.22.4-canary.
|
|
3
|
+
"version": "10.22.4-canary.f294cf2.0",
|
|
4
4
|
"description": "Utility functions for debugging, builds a Roblox character rig",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -26,18 +26,18 @@
|
|
|
26
26
|
"Quenty"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@quenty/assetserviceutils": "5.22.
|
|
30
|
-
"@quenty/humanoiddescriptionutils": "10.12.2-canary.
|
|
31
|
-
"@quenty/insertserviceutils": "10.12.0",
|
|
29
|
+
"@quenty/assetserviceutils": "5.22.3-canary.f294cf2.0",
|
|
30
|
+
"@quenty/humanoiddescriptionutils": "10.12.2-canary.f294cf2.0",
|
|
31
|
+
"@quenty/insertserviceutils": "10.12.1-canary.f294cf2.0",
|
|
32
32
|
"@quenty/loader": "10.9.0",
|
|
33
|
-
"@quenty/promise": "10.12.0"
|
|
33
|
+
"@quenty/promise": "10.12.1-canary.f294cf2.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@quenty/camerastoryutils": "10.12.
|
|
36
|
+
"@quenty/camerastoryutils": "10.12.2-canary.f294cf2.0",
|
|
37
37
|
"@quenty/maid": "3.5.0"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "f294cf2eec1dd0e95b09d4126287b812b77e1e72"
|
|
43
43
|
}
|
|
@@ -44,7 +44,7 @@ end
|
|
|
44
44
|
|
|
45
45
|
@param rig Model
|
|
46
46
|
]=]
|
|
47
|
-
function RigBuilderUtils.disableAnimateScript(rig: Model)
|
|
47
|
+
function RigBuilderUtils.disableAnimateScript(rig: Model): ()
|
|
48
48
|
local animate = RigBuilderUtils.findAnimateScript(rig)
|
|
49
49
|
if animate then
|
|
50
50
|
(animate :: any).Enabled = false
|
|
@@ -360,14 +360,14 @@ function RigBuilderUtils.promiseR15PackageRig(packageAssetId: number): Promise.P
|
|
|
360
360
|
|
|
361
361
|
return AssetServiceUtils.promiseAssetIdsForPackage(packageAssetId)
|
|
362
362
|
:Then(function(assetIds)
|
|
363
|
-
local promises = {}
|
|
363
|
+
local promises: { Promise.Promise<Model> } = {}
|
|
364
364
|
for _, assetId in assetIds do
|
|
365
365
|
table.insert(promises, InsertServiceUtils.promiseAsset(assetId))
|
|
366
366
|
end
|
|
367
367
|
return PromiseUtils.all(promises)
|
|
368
368
|
end)
|
|
369
369
|
:Then(function(...)
|
|
370
|
-
local limbs = { ... }
|
|
370
|
+
local limbs: { Model } = { ... } :: any
|
|
371
371
|
local character, humanoid = RigBuilderUtils._createR15BaseRig()
|
|
372
372
|
local head = (character :: any).Head
|
|
373
373
|
|
|
@@ -375,20 +375,22 @@ function RigBuilderUtils.promiseR15PackageRig(packageAssetId: number): Promise.P
|
|
|
375
375
|
local headMesh = nil
|
|
376
376
|
|
|
377
377
|
for _, limb in limbs do
|
|
378
|
-
|
|
379
|
-
|
|
378
|
+
local r15ArtistIntent = limb:FindFirstChild("R15ArtistIntent")
|
|
379
|
+
local r15 = limb:FindFirstChild("R15")
|
|
380
|
+
if r15ArtistIntent then
|
|
381
|
+
for _, x in r15ArtistIntent:GetChildren() do
|
|
380
382
|
x.Parent = character
|
|
381
383
|
end
|
|
382
|
-
elseif
|
|
383
|
-
for _, x in
|
|
384
|
+
elseif r15 then
|
|
385
|
+
for _, x in r15:GetChildren() do
|
|
384
386
|
x.Parent = character
|
|
385
387
|
end
|
|
386
388
|
elseif limb:FindFirstChild("face") then
|
|
387
|
-
face = limb
|
|
389
|
+
face = limb:FindFirstChild("face")
|
|
388
390
|
elseif limb:FindFirstChild("Face") then
|
|
389
|
-
face = limb
|
|
391
|
+
face = limb:FindFirstChild("Face")
|
|
390
392
|
elseif limb:FindFirstChild("Mesh") then
|
|
391
|
-
headMesh = limb
|
|
393
|
+
headMesh = limb:FindFirstChild("Mesh")
|
|
392
394
|
end
|
|
393
395
|
end
|
|
394
396
|
|
|
@@ -416,7 +418,7 @@ end
|
|
|
416
418
|
Creates a default R15 rig
|
|
417
419
|
@return Promise<Model>
|
|
418
420
|
]=]
|
|
419
|
-
function RigBuilderUtils.promiseR15Rig()
|
|
421
|
+
function RigBuilderUtils.promiseR15Rig(): Promise.Promise<Model>
|
|
420
422
|
return InsertServiceUtils.promiseAsset(1664543044):Then(function(inserted)
|
|
421
423
|
local character = inserted:GetChildren()[1]
|
|
422
424
|
if not character then
|