fix save multiple frames

This commit is contained in:
2019-11-09 15:58:26 +01:00
parent 7b544522cf
commit 7ebc05327d
2 changed files with 4 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ LayerFrame& Layer::frame(int frame /*= -1*/)
{
if (frame == -1)
frame = m_frame_index;
return m_frames[m_frame_index];
return m_frames[frame];
}
TextureCube Layer::gen_cube()