Пример #1
0
 private void UpdateModel(MDL0Node model)
 {
     int frame = CurrentFrame;
     if (_chr0 != null && !(TargetAnimType != AnimType.CHR && !playCHR0ToolStripMenuItem.Checked))
         model.ApplyCHR(_chr0, frame);
     else
         model.ApplyCHR(null, 0);
     if (_srt0 != null && !(TargetAnimType != AnimType.SRT && !playSRT0ToolStripMenuItem.Checked))
         model.ApplySRT(_srt0, frame);
     else
         model.ApplySRT(null, 0);
     if (_shp0 != null && !(TargetAnimType != AnimType.SHP && !playSHP0ToolStripMenuItem.Checked))
         model.ApplySHP(_shp0, frame);
     else
         model.ApplySHP(null, 0);
     if (_pat0 != null && !(TargetAnimType != AnimType.PAT && !playPAT0ToolStripMenuItem.Checked))
         model.ApplyPAT(_pat0, frame);
     else
         model.ApplyPAT(null, 0);
     if (_vis0 != null && !(TargetAnimType != AnimType.VIS && !playVIS0ToolStripMenuItem.Checked))
         if (model == TargetModel)
             ReadVIS0();
         else
             model.ApplyVIS(_vis0, frame);
     if (_clr0 != null && !(TargetAnimType != AnimType.CLR && !playCLR0ToolStripMenuItem.Checked))
         model.ApplyCLR(_clr0, frame);
     else
         model.ApplyCLR(null, 0);
 }
Пример #2
0
 private void UpdateModel(MDL0Node model)
 {
     if (_chr0 != null && playCHR0ToolStripMenuItem.Checked)
         model.ApplyCHR(_chr0, _animFrame);
     else
         model.ApplyCHR(null, 0);
     if (_srt0 != null && playSRT0ToolStripMenuItem.Checked)
         model.ApplySRT(_srt0, _animFrame);
     else
         model.ApplySRT(null, 0);
     if (_shp0 != null && playSHP0ToolStripMenuItem.Checked)
         model.ApplySHP(_shp0, _animFrame);
     else
         model.ApplySHP(null, 0);
     if (_pat0 != null && playPAT0ToolStripMenuItem.Checked)
         model.ApplyPAT(_pat0, _animFrame);
     else
         model.ApplyPAT(null, 0);
     if (_vis0 != null && playVIS0ToolStripMenuItem.Checked)
         if (model == TargetModel)
             ReadVIS0();
         else
             model.ApplyVIS(_vis0, _animFrame);
     if (_scn0 != null)// && playSCN0ToolStripMenuItem.Checked)
         model.SetSCN0Frame(_animFrame);
     else
         model.SetSCN0Frame(0);
     if (_clr0 != null && playCLR0ToolStripMenuItem.Checked)
         model.ApplyCLR(_clr0, _animFrame);
     else
         model.ApplyCLR(null, 0);
 }