Specify the default repeat type as a parameter; model animations should
not loop by default. git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@138 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -145,7 +145,8 @@ public class AnimationDef
|
||||
// create and configure the animation
|
||||
Model.Animation anim = new Model.Animation();
|
||||
anim.frameRate = frameRate;
|
||||
anim.repeatType = JmeUtil.parseRepeatType(props.getProperty("repeat_type"));
|
||||
anim.repeatType = JmeUtil.parseRepeatType(props.getProperty("repeat_type"),
|
||||
Controller.RT_CLAMP);
|
||||
|
||||
// collect all transforms
|
||||
anim.transformTargets = targets.toArray(new Spatial[targets.size()]);
|
||||
|
||||
Reference in New Issue
Block a user