mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-22 04:23:09 +00:00
Fix empty key frames for texture animations causing a possible crash
This commit is contained in:
parent
66f429a555
commit
e6bfadbaf0
1 changed files with 1 additions and 0 deletions
|
@ -76,6 +76,7 @@ namespace Toolbox.Library.Animations
|
|||
public virtual string GetActiveTextureNameByFrame(float frame)
|
||||
{
|
||||
var keyFrame = GetKeyFrame(frame);
|
||||
if (keyFrame == null) return "";
|
||||
return MaterialAnimation.Textures[(int)keyFrame.Value];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue