瀏覽代碼

Unreverted back change http://code.google.com/p/jmonkeyengine/source/detail?r=7142 because change is so fun :D, and it's more logical...i guess

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7164 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
rem..om 14 年之前
父節點
當前提交
109c6b4ef7
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      engine/src/core/com/jme3/animation/Bone.java

+ 2 - 2
engine/src/core/com/jme3/animation/Bone.java

@@ -347,7 +347,7 @@ public final class Bone implements Savable {
 
     /**
      * Set user transform.
-     * The transforms are used as increments to current translations
+     * Combine the given transforms to bone's current transforms
      * @see setUserControl
      */
     public void setUserTransforms(Vector3f translation, Quaternion rotation, Vector3f scale) {
@@ -361,7 +361,7 @@ public final class Bone implements Savable {
 
         localPos.addLocal(translation);
         localRot = localRot.mult(rotation);
-        localScale.addLocal(scale);
+        localScale.multLocal(scale);
     }
 
     /**