mirror of
https://github.com/BlackMATov/unity-flash-tools.git
synced 2026-01-04 23:46:51 +07:00
rasterization bug fix
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user