roavatar-renderer 1.5.3 → 1.5.4

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.
Files changed (2) hide show
  1. package/dist/index.js +9 -1
  2. 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.className.includes("Part")) {
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "roavatar-renderer",
3
- "version": "1.5.3",
3
+ "version": "1.5.4",
4
4
  "description": "A renderer for Roblox avatars, used by the RoAvatar extension.",
5
5
  "author": "steinan",
6
6
  "type": "module",