Просмотр исходного кода

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
Kae..pl 14 лет назад
Родитель
Сommit
f74d0311ae

+ 0 - 3
engine/src/blender/com/jme3/scene/plugins/blender/constraints/ConstraintLocLimit.java

@@ -1,7 +1,6 @@
 package com.jme3.scene.plugins.blender.constraints;
 
 import com.jme3.animation.Animation;
-import com.jme3.animation.Track;
 import com.jme3.math.Transform;
 import com.jme3.math.Vector3f;
 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));
 				}
 				track.setKeyframes(track.getTimes(), translations, track.getRotations(), track.getScales());
-				translations = track.getTranslations();
-				animation.setTracks(new Track[] {track.getTrack()});
 			}
 		}
 	}