roavatar-renderer 1.5.3 → 1.5.5
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/dist/index.js +14 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -47247,9 +47247,12 @@ class AttachmentWrapper extends InstanceWrapper {
|
|
|
47247
47247
|
}
|
|
47248
47248
|
getWorldCFrame() {
|
|
47249
47249
|
if (this.instance.parent) {
|
|
47250
|
-
if (this.instance.parent.
|
|
47250
|
+
if (this.instance.parent.w?.IsA("BasePart")) {
|
|
47251
47251
|
const parentCF = this.instance.parent.PropOrDefault("CFrame", new CFrame());
|
|
47252
47252
|
return parentCF.multiply(this.instance.Prop("CFrame"));
|
|
47253
|
+
} else if (this.instance.parent.w?.IsA("Attachment")) {
|
|
47254
|
+
const w = this.instance.parent.w;
|
|
47255
|
+
return w.getWorldCFrame().multiply(this.instance.Prop("CFrame"));
|
|
47253
47256
|
}
|
|
47254
47257
|
}
|
|
47255
47258
|
return this.instance.Prop("CFrame");
|
|
@@ -48221,6 +48224,11 @@ class HumanoidDescriptionWrapper extends InstanceWrapper {
|
|
|
48221
48224
|
if (!FLAGS.AVATAR_JOINT_UPGRADE) {
|
|
48222
48225
|
moveAttachmentsToBase(child);
|
|
48223
48226
|
}
|
|
48227
|
+
for (const childChild of child.GetChildren()) {
|
|
48228
|
+
if (childChild.w?.IsA("Weld") || childChild.w?.IsA("AnimationConstraint")) {
|
|
48229
|
+
childChild.Destroy();
|
|
48230
|
+
}
|
|
48231
|
+
}
|
|
48224
48232
|
replaceBodyPart(rig, child);
|
|
48225
48233
|
}
|
|
48226
48234
|
}
|
|
@@ -48254,6 +48262,11 @@ class HumanoidDescriptionWrapper extends InstanceWrapper {
|
|
|
48254
48262
|
} else {
|
|
48255
48263
|
const head2 = dataModel.FindFirstChildOfClass("MeshPart");
|
|
48256
48264
|
if (head2) {
|
|
48265
|
+
for (const childChild of head2.GetChildren()) {
|
|
48266
|
+
if (childChild.w?.IsA("Weld") || childChild.w?.IsA("AnimationConstraint")) {
|
|
48267
|
+
childChild.Destroy();
|
|
48268
|
+
}
|
|
48269
|
+
}
|
|
48257
48270
|
replaceBodyPart(rig, head2);
|
|
48258
48271
|
}
|
|
48259
48272
|
}
|