roavatar-renderer 1.7.1 → 1.7.2

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.d.ts CHANGED
@@ -744,6 +744,7 @@ export declare class BackgroundRenderer {
744
744
  _loadAvatarCyclorama(): Promise<void>;
745
745
  _applyBackgroundData(): void;
746
746
  _applyBackgroundRotation(): void;
747
+ resetBackgroundRotation(): void;
747
748
  /**
748
749
  * Starts updating the animation of the background per frame
749
750
  */
package/dist/index.js CHANGED
@@ -62540,6 +62540,18 @@ class BackgroundRenderer {
62540
62540
  }
62541
62541
  }
62542
62542
  }
62543
+ } else {
62544
+ this.resetBackgroundRotation();
62545
+ }
62546
+ }
62547
+ resetBackgroundRotation() {
62548
+ if (this.avatarCyclorama) {
62549
+ for (const child of this.avatarCyclorama.GetChildren()) {
62550
+ if (child.IsA("BasePart")) {
62551
+ const ogChildCF = this.originalPartCFrames.get(child);
62552
+ child.setProperty("CFrame", ogChildCF);
62553
+ }
62554
+ }
62543
62555
  }
62544
62556
  }
62545
62557
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "roavatar-renderer",
3
- "version": "1.7.1",
3
+ "version": "1.7.2",
4
4
  "description": "A renderer for Roblox avatars, used by the RoAvatar extension.",
5
5
  "author": "steinan",
6
6
  "type": "module",