Bugfix: LocLimitConstraint erased other tracks except the one it was supposed to alter.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8947 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
Kae..pl 2011-12-19 21:47:55 +00:00
parent 8297877114
commit f74d0311ae

View File

@ -1,7 +1,6 @@
package com.jme3.scene.plugins.blender.constraints; package com.jme3.scene.plugins.blender.constraints;
import com.jme3.animation.Animation; import com.jme3.animation.Animation;
import com.jme3.animation.Track;
import com.jme3.math.Transform; import com.jme3.math.Transform;
import com.jme3.math.Vector3f; import com.jme3.math.Vector3f;
import com.jme3.scene.plugins.blender.BlenderContext; import com.jme3.scene.plugins.blender.BlenderContext;
@ -86,8 +85,6 @@ import com.jme3.scene.plugins.ogre.AnimData;
this.locLimit(translations[frame], ipo.calculateValue(frame)); this.locLimit(translations[frame], ipo.calculateValue(frame));
} }
track.setKeyframes(track.getTimes(), translations, track.getRotations(), track.getScales()); track.setKeyframes(track.getTimes(), translations, track.getRotations(), track.getScales());
translations = track.getTranslations();
animation.setTracks(new Track[] {track.getTrack()});
} }
} }
} }