mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2025-02-17 06:18:26 +00:00
Draw selection for all shapes if the fmdl is selected
This commit is contained in:
parent
0e72164823
commit
1831efc3e9
5 changed files with 2 additions and 2 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -625,7 +625,7 @@ namespace FirstPlugin
|
|||
GL.TexParameter(TextureTarget.Texture2D, TextureParameterName.TextureMagFilter, (int)MatTexture.magfilter[tex.magFilter]);
|
||||
GL.TexParameter(TextureTarget.Texture2D, (TextureParameterName)ExtTextureFilterAnisotropic.TextureMaxAnisotropyExt, 0.0f);
|
||||
}
|
||||
private void DrawModel(FSHP m, FMDL mdl, SF.Shader shader, bool drawSelection)
|
||||
private void DrawModel(FSHP m, FMDL mdl, SF.Shader shader, bool ModelSelected)
|
||||
{
|
||||
if (m.lodMeshes[m.DisplayLODIndex].faces.Count <= 3)
|
||||
return;
|
||||
|
@ -654,7 +654,7 @@ namespace FirstPlugin
|
|||
shader.SetVector3("materialSelectColor", ColorUtility.ToVector3(Color.FromArgb(0,163,204)));
|
||||
DrawModelSelection(m, shader);
|
||||
}
|
||||
else if ((m.IsSelected))
|
||||
else if (m.IsSelected || ModelSelected)
|
||||
{
|
||||
DrawModelSelection(m, shader);
|
||||
}
|
||||
|
|
Binary file not shown.
Loading…
Add table
Reference in a new issue