Merge remote-tracking branch 'upstream/master'

This commit is contained in:
smaren 2014-05-08 12:27:48 +02:00
commit 2a8327d6b1
4 changed files with 6 additions and 2 deletions

View File

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

View File

@ -81,7 +81,7 @@ public class SkeletonAnimation : SkeletonRenderer {
deltaTime *= timeScale;
skeleton.Update(deltaTime);
state.Update(deltaTime * timeScale);
state.Update(deltaTime);
state.Apply(skeleton);
if (UpdateBones != null) UpdateBones(this);
skeleton.UpdateWorldTransform();

View File

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

View File

@ -81,7 +81,7 @@ public class SkeletonAnimation : SkeletonRenderer {
deltaTime *= timeScale;
skeleton.Update(deltaTime);
state.Update(deltaTime * timeScale);
state.Update(deltaTime);
state.Apply(skeleton);
if (UpdateBones != null) UpdateBones(this);
skeleton.UpdateWorldTransform();