Skip to content

Commit c020ac4

Browse files
committed
update labapi ref and waiting 2 frame before applying size
1 parent 2f5eb8e commit c020ac4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

3rdpartyRef/LabApiExtensions.dll

1 KB
Binary file not shown.

SimpleCustomRoles/RoleInfo/CustomRoleInfoStorage.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ internal IEnumerator<float> ApplyCor()
5959
SetStats();
6060
yield return Timing.WaitForSeconds(0.2f);
6161
SetCommon();
62+
yield return Timing.WaitForOneFrame;
63+
yield return Timing.WaitForOneFrame;
6264
SetFpc();
6365
SetCustomInfo();
6466
SetExtraFpc();
@@ -209,12 +211,12 @@ private void SetFpc()
209211

210212
if (Role.Fpc.Scale != Vector3.one)
211213
{
212-
ScaleHelper.SetScale(Owner, Role.Fpc.Scale, false);
214+
ScaleHelper.SetScale(Owner, Role.Fpc.Scale, false, true);
213215
}
214216

215217
if (Role.Fpc.FakeScale != Vector3.one)
216218
{
217-
ScaleHelper.SetScale(Owner, Role.Fpc.FakeScale, true);
219+
ScaleHelper.SetScale(Owner, Role.Fpc.FakeScale, true, true);
218220
}
219221

220222
// Appearance

0 commit comments

Comments
 (0)