bind pose stripped anim export + cubemap to panorama

Co-authored-by: Zain / Kaiser M <106357974+KaiserM21@users.noreply.github.com>
This commit is contained in:
Asval
2023-11-25 05:36:08 +01:00
parent 0551bc3731
commit a80379c3b9
4 changed files with 14 additions and 4 deletions

View File

@@ -229,7 +229,15 @@ public class TabItem : ViewModel
}
public void AddImage(UTexture texture, bool save, bool updateUi)
=> AddImage(texture.Name, texture.RenderNearestNeighbor, texture.Decode(UserSettings.Default.CurrentDir.TexturePlatform), save, updateUi);
{
var img = texture.Decode(UserSettings.Default.CurrentDir.TexturePlatform);
if (texture is UTextureCube)
{
img = img?.ToPanorama();
}
AddImage(texture.Name, texture.RenderNearestNeighbor, img, save, updateUi);
}
public void AddImage(string name, bool rnn, SKBitmap[] img, bool save, bool updateUi)
{