timeScale can't be negative.

This commit is contained in:
NathanSweet 2014-05-08 12:13:51 +02:00
parent 9c403565e0
commit f597ad5d6a
2 changed files with 2 additions and 0 deletions

View File

@ -73,5 +73,6 @@ public class SkeletonAnimationInspector : SkeletonRendererInspector {
EditorGUILayout.PropertyField(loop);
EditorGUILayout.PropertyField(timeScale);
component.timeScale = Math.Max(component.timeScale, 0);
}
}

View File

@ -73,5 +73,6 @@ public class SkeletonAnimationInspector : SkeletonRendererInspector {
EditorGUILayout.PropertyField(loop);
EditorGUILayout.PropertyField(timeScale);
component.timeScale = Math.Max(component.timeScale, 0);
}
}