roavatar-renderer 1.2.8 → 1.2.9
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 +22 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -35607,7 +35607,7 @@ function BatchThumbnails() {
|
|
|
35607
35607
|
let auth = void 0;
|
|
35608
35608
|
const body = [];
|
|
35609
35609
|
for (const thumbnailInfo of ThumbnailsToBatch) {
|
|
35610
|
-
if (Date.now() / 1e3 - thumbnailInfo.lastTryTimestamp < 1) {
|
|
35610
|
+
if (Date.now() / 1e3 - thumbnailInfo.lastTryTimestamp < 1 + thumbnailInfo.attempt) {
|
|
35611
35611
|
continue;
|
|
35612
35612
|
}
|
|
35613
35613
|
body.push({
|
|
@@ -59655,11 +59655,18 @@ class AnimatorWrapper extends InstanceWrapper {
|
|
|
59655
59655
|
}
|
|
59656
59656
|
}
|
|
59657
59657
|
const humanoidDescription = humanoid.FindFirstChildOfClass("HumanoidDescription");
|
|
59658
|
+
let staticFacialAnimation = false;
|
|
59658
59659
|
if (humanoidDescription) {
|
|
59659
|
-
|
|
59660
|
+
staticFacialAnimation = humanoidDescription.Prop("StaticFacialAnimation");
|
|
59661
|
+
if (staticFacialAnimation) {
|
|
59660
59662
|
this.restPose(false, true);
|
|
59661
59663
|
}
|
|
59662
59664
|
}
|
|
59665
|
+
if (staticFacialAnimation && this.data.currentMoodAnimation !== "mood") {
|
|
59666
|
+
this.playAnimation("mood", "mood");
|
|
59667
|
+
} else if (!staticFacialAnimation && this.data.currentAnimation?.startsWith("emote.") && this.data.currentMoodAnimation) {
|
|
59668
|
+
this.stopMoodAnimation();
|
|
59669
|
+
}
|
|
59663
59670
|
for (const track of this.data.animationTracks.values()) {
|
|
59664
59671
|
if (!this.data.moodTracks.includes(track)) continue;
|
|
59665
59672
|
const looped = track.tick(addTime);
|
|
@@ -59797,10 +59804,22 @@ class AnimatorWrapper extends InstanceWrapper {
|
|
|
59797
59804
|
}
|
|
59798
59805
|
}
|
|
59799
59806
|
playAnimation(name2, type = "main") {
|
|
59807
|
+
const humanoid = this.instance.parent;
|
|
59808
|
+
if (!humanoid) {
|
|
59809
|
+
throw new Error("Parent is missing from Animator");
|
|
59810
|
+
}
|
|
59811
|
+
const humanoidDescription = humanoid.FindFirstChildOfClass("HumanoidDescription");
|
|
59812
|
+
let staticFacialAnimation = false;
|
|
59813
|
+
if (humanoidDescription) {
|
|
59814
|
+
staticFacialAnimation = humanoidDescription.Prop("StaticFacialAnimation");
|
|
59815
|
+
if (staticFacialAnimation) {
|
|
59816
|
+
this.restPose(false, true);
|
|
59817
|
+
}
|
|
59818
|
+
}
|
|
59800
59819
|
switch (type) {
|
|
59801
59820
|
case "main":
|
|
59802
59821
|
if (this.data.currentAnimation !== name2) {
|
|
59803
|
-
if (!name2.startsWith("emote.")) {
|
|
59822
|
+
if (!name2.startsWith("emote.") || staticFacialAnimation) {
|
|
59804
59823
|
this.playAnimation("mood", "mood");
|
|
59805
59824
|
} else {
|
|
59806
59825
|
this.stopMoodAnimation();
|