소스 검색

You can now enable/disable HardwareSkinning for each SkeletonControl.

MeFisto94 9 년 전
부모
커밋
5152dfb540
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeSkeletonControl.java

+ 4 - 1
jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeSkeletonControl.java

@@ -82,7 +82,10 @@ public class JmeSkeletonControl extends JmeControl {
         if (skeletonControl == null) {
         if (skeletonControl == null) {
             return sheet;
             return sheet;
         }
         }
-
+        Property<?> prop = makeProperty(skeletonControl, boolean.class, "isHardwareSkinningPreferred", "setHardwareSkinningPreferred", "Hardware Skinning");
+        prop.setShortDescription("This Preference enables/disables the usage of HW Skinning for this Skeleton. This will improve your performance and is the default, however you might want to turn it off to debug some failure. Also Note that setting it to true doesn't guarantee that HW Skinning is used, it has to be supported by the Platform.");
+        set.put(prop);
+        
         //  set.put(new AnimationProperty(animControl));
         //  set.put(new AnimationProperty(animControl));
 
 
         sheet.put(set);
         sheet.put(set);