浏览代码

SingleLayerInfluenceMask: add constructor that affects no joints

capdevon 6 月之前
父节点
当前提交
8df70fd702
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. 11 0
      jme3-core/src/main/java/com/jme3/anim/SingleLayerInfluenceMask.java

+ 11 - 0
jme3-core/src/main/java/com/jme3/anim/SingleLayerInfluenceMask.java

@@ -66,6 +66,17 @@ public class SingleLayerInfluenceMask extends ArmatureMask {
         this.targetLayer = targetLayer;
         this.animComposer = animComposer;
     }
+    
+    /**
+     * Instantiate a mask that affects no joints.
+     * 
+     * @param targetLayer  The layer this mask is targeted for.
+     * @param animComposer The animation composer associated with this mask.
+     */
+    public SingleLayerInfluenceMask(String targetLayer, AnimComposer animComposer) {
+        this.targetLayer = targetLayer;
+        this.animComposer = animComposer;
+    }
 
     /**
      * Get the layer this mask is targeted for.