mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-05-27 22:00:23 -04:00
fixed #110
This commit is contained in:
parent
7e6ef31875
commit
a49d409619
@ -1748,6 +1748,8 @@ namespace Unity_Studio
|
|||||||
|
|
||||||
public static void ExportMesh(Mesh m_Mesh, string exportPath)
|
public static void ExportMesh(Mesh m_Mesh, string exportPath)
|
||||||
{
|
{
|
||||||
|
if (m_Mesh.m_VertexCount <= 0)
|
||||||
|
return;
|
||||||
var sb = new StringBuilder();
|
var sb = new StringBuilder();
|
||||||
sb.AppendLine("g " + m_Mesh.m_Name);
|
sb.AppendLine("g " + m_Mesh.m_Name);
|
||||||
#region Vertices
|
#region Vertices
|
||||||
|
@ -961,12 +961,11 @@ namespace Unity_Studio
|
|||||||
#region Mesh
|
#region Mesh
|
||||||
case 43: //Mesh
|
case 43: //Mesh
|
||||||
{
|
{
|
||||||
glControl1.Visible = true;
|
|
||||||
viewMatrixData = Matrix4.CreateRotationY(-(float)Math.PI / 4) * Matrix4.CreateRotationX(-(float)Math.PI / 6);
|
|
||||||
|
|
||||||
var m_Mesh = new Mesh(asset, true);
|
var m_Mesh = new Mesh(asset, true);
|
||||||
if (m_Mesh.m_VertexCount > 0)
|
if (m_Mesh.m_VertexCount > 0)
|
||||||
{
|
{
|
||||||
|
glControl1.Visible = true;
|
||||||
|
viewMatrixData = Matrix4.CreateRotationY(-(float)Math.PI / 4) * Matrix4.CreateRotationX(-(float)Math.PI / 6);
|
||||||
#region Vertices
|
#region Vertices
|
||||||
int count = 3;
|
int count = 3;
|
||||||
if (m_Mesh.m_Vertices.Length == m_Mesh.m_VertexCount * 4)
|
if (m_Mesh.m_Vertices.Length == m_Mesh.m_VertexCount * 4)
|
||||||
@ -1095,8 +1094,8 @@ namespace Unity_Studio
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
createVAO();
|
||||||
}
|
}
|
||||||
createVAO();
|
|
||||||
StatusStripUpdate("Using OpenGL Version: " + GL.GetString(StringName.Version) + "\n"
|
StatusStripUpdate("Using OpenGL Version: " + GL.GetString(StringName.Version) + "\n"
|
||||||
+ "'T'=Start/Stop Rotation | 'WASD'=Manual Rotate | 'Shift WASD'=Move | 'Q/E'=Zoom \n"
|
+ "'T'=Start/Stop Rotation | 'WASD'=Manual Rotate | 'Shift WASD'=Move | 'Q/E'=Zoom \n"
|
||||||
+ "'Ctrl W'=Wireframe | 'Ctrl S'=Shade | 'Ctrl N'=ReNormal ");
|
+ "'Ctrl W'=Wireframe | 'Ctrl S'=Shade | 'Ctrl N'=ReNormal ");
|
||||||
|
Loading…
Reference in New Issue
Block a user