فهرست منبع

solve issue #2571 (RendererException with hw skinning disabled)

stephengold 2 روز پیش
والد
کامیت
7998a5331b
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      jme3-core/src/main/java/com/jme3/animation/SkeletonControl.java

+ 3 - 1
jme3-core/src/main/java/com/jme3/animation/SkeletonControl.java

@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright (c) 2009-2023 jMonkeyEngine
+ * Copyright (c) 2009-2025 jMonkeyEngine
  * All rights reserved.
  * All rights reserved.
  *
  *
  * Redistribution and use in source and binary forms, with or without
  * Redistribution and use in source and binary forms, with or without
@@ -250,6 +250,8 @@ public class SkeletonControl extends AbstractControl implements Cloneable, JmeCl
         resetToBind(); // reset morph meshes to bind pose
         resetToBind(); // reset morph meshes to bind pose
 
 
         offsetMatrices = skeleton.computeSkinningMatrices();
         offsetMatrices = skeleton.computeSkinningMatrices();
+        numberOfBonesParam.setEnabled(false);
+        boneMatricesParam.setEnabled(false);
 
 
         for (Geometry geometry : targets) {
         for (Geometry geometry : targets) {
             Mesh mesh = geometry.getMesh();
             Mesh mesh = geometry.getMesh();