Skip to content

Commit

Permalink
0.7.2
Browse files Browse the repository at this point in the history
修复了新版本VRoidStudio中通过插件的导出UV功能失效问题
  • Loading branch information
xiaoye97 committed Mar 29, 2022
1 parent f250517 commit 12bfa98
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion VRoidXYTool/LinkTextureTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ public void ExportTexture(LinkTexture lt)
{
string path = $"{linkDir}/{lt.layer.TranslatedDisplayName}.png";
File.WriteAllBytes(path, bytes);
Debug.Log($"导出了纹理到{path}");
}
catch (Exception e)
{
Expand All @@ -240,9 +241,11 @@ public async void ExportUV(LinkTexture lt)
try
{
TexturePath referringTexturePath = lt.layer._parent.ReferringTexturePaths.FirstOrDefault<TexturePath>();
var bytes = await XYTool.Inst.CurrentFileVM.Engine.GetUVGuideTexturePNGBytes(referringTexturePath);
var bytesCollection = await XYTool.Inst.CurrentFileVM.Engine.GetUVGuideTexturePNGBytes(referringTexturePath);
var bytes = bytesCollection.ToArray();
string path = $"{linkDir}/{lt.layer.TranslatedDisplayName}_UV.png";
File.WriteAllBytes(path, bytes);
Debug.Log($"导出了参考图到{path}");
}
catch (Exception e)
{
Expand Down
4 changes: 2 additions & 2 deletions VRoidXYTool/VRoidXYTool.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@
<HintPath>..\..\..\Program Files (x86)\Steam\steamapps\common\VRoid Studio\VRoidStudio_Data\Managed\UnityTablet.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="VRoid.Studio">
<HintPath>..\..\..\Program Files (x86)\Steam\steamapps\common\VRoid Studio\ExDll\VRoid.Studio.dll</HintPath>
<Reference Include="VRoid.Studio-nstrip">
<HintPath>..\..\..\Program Files (x86)\Steam\steamapps\common\VRoid Studio\ExDll\VRoid.Studio-nstrip.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="VRoid.UI">
Expand Down
2 changes: 1 addition & 1 deletion VRoidXYTool/XYTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public partial class XYTool : BaseUnityPlugin
{
public const string PluginID = "me.xiaoye97.plugin.VRoidStudio.VRoidXYTool";
public const string PluginName = "VRoidXYTool";
public const string PluginVersion = "0.7.1";
public const string PluginVersion = "0.7.2";

public static XYTool Inst;

Expand Down

0 comments on commit 12bfa98

Please sign in to comment.