rasterization bug fix

This commit is contained in:
2016-03-05 01:00:08 +06:00
parent 43308046fa
commit 3f3dd70d4a
2 changed files with 31 additions and 13 deletions

View File

@@ -20,11 +20,14 @@ namespace FlashTools.Internal {
public override void OnInspectorGUI() {
DrawDefaultInspector();
if ( _anim.Asset ) {
var new_current_frame = EditorGUILayout.IntSlider(
"Frame",
_anim.currentFrame, 0, _anim.frameCount - 1);
if ( new_current_frame != _anim.currentFrame ) {
_anim.currentFrame = new_current_frame;
if ( _anim.frameCount > 1 ) {
var new_current_frame = EditorGUILayout.IntSlider(
"Frame",
_anim.currentFrame, 0, _anim.frameCount - 1);
if ( new_current_frame != _anim.currentFrame ) {
_anim.currentFrame = new_current_frame;
}
}
var symbols = _anim.Asset.Data.Library.Symbols.Select(p => p.Id).ToArray();