roavatar-renderer 1.1.2 → 1.1.3
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 +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -60581,6 +60581,7 @@ class OutfitRenderer {
|
|
|
60581
60581
|
if (result instanceof RBX) {
|
|
60582
60582
|
const newRig = result.generateTree().GetChildren()[0];
|
|
60583
60583
|
this.currentRig = newRig;
|
|
60584
|
+
this.currentlyChangingRig = false;
|
|
60584
60585
|
RBXRenderer.addInstance(this.currentRig, this.auth);
|
|
60585
60586
|
resolve(newRig);
|
|
60586
60587
|
} else {
|
|
@@ -60596,7 +60597,9 @@ class OutfitRenderer {
|
|
|
60596
60597
|
_updateOutfit() {
|
|
60597
60598
|
if (this.currentlyUpdating) {
|
|
60598
60599
|
this.hasNewUpdate = true;
|
|
60600
|
+
return;
|
|
60599
60601
|
}
|
|
60602
|
+
this.currentlyUpdating = true;
|
|
60600
60603
|
const newRigType = this.outfit.playerAvatarType;
|
|
60601
60604
|
const promises = [];
|
|
60602
60605
|
if (newRigType !== this.currentRigType || !this.currentRig) {
|
|
@@ -60610,6 +60613,7 @@ class OutfitRenderer {
|
|
|
60610
60613
|
const humanoid = this.currentRig.FindFirstChildOfClass("Humanoid");
|
|
60611
60614
|
if (humanoid) {
|
|
60612
60615
|
hrpWrapper.applyDescription(humanoid).then((result) => {
|
|
60616
|
+
this.currentlyUpdating = false;
|
|
60613
60617
|
if (this.currentRig) {
|
|
60614
60618
|
RBXRenderer.addInstance(this.currentRig, this.auth);
|
|
60615
60619
|
if (this.doCameraUpdateOnLoad) {
|
|
@@ -60617,7 +60621,6 @@ class OutfitRenderer {
|
|
|
60617
60621
|
}
|
|
60618
60622
|
}
|
|
60619
60623
|
if (result instanceof Instance) {
|
|
60620
|
-
this.currentlyUpdating = false;
|
|
60621
60624
|
if (this.hasNewUpdate) {
|
|
60622
60625
|
this.hasNewUpdate = false;
|
|
60623
60626
|
this._updateOutfit();
|