From f5474d36f87a79f1225ca4fe7c34fe6f19d529e5 Mon Sep 17 00:00:00 2001 From: Stephen Gold Date: Tue, 23 Mar 2021 23:35:37 -0700 Subject: [PATCH] Action: publicize the setLength() method --- .../src/main/java/com/jme3/anim/tween/action/Action.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/jme3-core/src/main/java/com/jme3/anim/tween/action/Action.java b/jme3-core/src/main/java/com/jme3/anim/tween/action/Action.java index 6846f91460..0fb423f336 100644 --- a/jme3-core/src/main/java/com/jme3/anim/tween/action/Action.java +++ b/jme3-core/src/main/java/com/jme3/anim/tween/action/Action.java @@ -30,7 +30,13 @@ public double getLength() { return length; } - protected void setLength(double length) { + /** + * Alter the length (duration) of this Action. This can be used to extend + * or truncate an Action. + * + * @param length the desired length (in unscaled seconds, default=0) + */ + public void setLength(double length) { this.length = length; }