From 489a3e2c77d6b3c49fd61248413f4bf516325e53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?100=E3=81=AE=E4=BA=BA?= <100@pokemori.jp> Date: Fri, 20 Sep 2019 08:54:39 +0900 Subject: [PATCH] =?UTF-8?q?VRChat=20SDK=202019.09.18.12.05=20=E3=81=AB?= =?UTF-8?q?=E5=AF=BE=E5=BF=9C(2019.08.23.13.45=E5=90=AB=E3=82=80=E4=BB=A5?= =?UTF-8?q?=E5=89=8D=E3=81=AE=E3=83=90=E3=83=BC=E3=82=B8=E3=83=A7=E3=83=B3?= =?UTF-8?q?=E3=81=A8=E3=81=AF=E4=BA=92=E6=8F=9B=E6=80=A7=E3=81=8C=E3=81=AA?= =?UTF-8?q?=E3=81=8F=E3=81=AA=E3=81=A3=E3=81=9F)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 以下で報告の修正内容をマージ。 🗾あきら☎︎@VMC0.34さんのツイート: “.@esperecyan いつもお世話になってます。プルリクすべきなんですがとりあえずご報告です。VRCSDK側の更新で、アバターパフォーマンス測るCalcuratePerformanceStatsの使い方が変わったのでVRM Converter for VRChat側がエラーになってます。画像な感じの修正でエラー消えました。よろしくお願いします… https://t.co/r7bmLZc6EM” https://twitter.com/sh_akira/status/1174732563539099648 --- Editor/ComponentsReplacer.cs | 6 ++++-- Editor/Wizard.cs | 12 ++++++++---- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/Editor/ComponentsReplacer.cs b/Editor/ComponentsReplacer.cs index 66eb77e..ddd02c2 100644 --- a/Editor/ComponentsReplacer.cs +++ b/Editor/ComponentsReplacer.cs @@ -260,9 +260,11 @@ ComponentsReplacer.SwayingParametersConverter swayingParametersConverter private static IEnumerable GetMessagesAboutDynamicBoneLimits(GameObject avatar) { var messages = new List(); - AvatarPerformanceStats statistics = AvatarPerformance.CalculatePerformanceStats( + AvatarPerformanceStats statistics = new AvatarPerformanceStats(); + AvatarPerformance.CalculatePerformanceStats( avatarName: avatar.GetComponent().Meta.Title, - avatarObject: avatar + avatarObject: avatar, + perfStats: statistics ); AvatarPerformanceStatsLevel mediumPerformanceStatLimits diff --git a/Editor/Wizard.cs b/Editor/Wizard.cs index bf71a30..d8d6b17 100644 --- a/Editor/Wizard.cs +++ b/Editor/Wizard.cs @@ -509,10 +509,13 @@ IEnumerable notCombineRendererObjectNames return true; } - int currentPolycount = AvatarPerformance.CalculatePerformanceStats( + AvatarPerformanceStats statistics = new AvatarPerformanceStats(); + AvatarPerformance.CalculatePerformanceStats( avatarName: avatar.GetComponent().Meta.Title, - avatarObject: this.avatar.gameObject - ).polyCount; + avatarObject: this.avatar.gameObject, + perfStats: statistics + ); + int currentPolycount = statistics.polyCount; int maxPolycount = VRChatUtility.AvatarPerformanceStatsLevelSets["Quest"].medium.polyCount; @@ -539,7 +542,8 @@ IEnumerable notCombineRendererObjectNames { var messages = new List(); - AvatarPerformanceStats statistics = AvatarPerformance.CalculatePerformanceStats("", prefab); + AvatarPerformanceStats statistics = new AvatarPerformanceStats(); + AvatarPerformance.CalculatePerformanceStats("", prefab, statistics); AvatarPerformanceStatsLevel performanceStatLimits = VRChatUtility.AvatarPerformanceStatsLevelSets["Quest"].medium;