Browse Source

DynamicBones: fix crash on loading model data

lviguier 7 tháng trước cách đây
mục cha
commit
6ba2cb8503
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      h3d/prim/ModelDatabase.hx

+ 1 - 1
h3d/prim/ModelDatabase.hx

@@ -158,7 +158,7 @@ class ModelDatabase {
 			newJ.resistance = jConf.resistance;
 			newJ.slackness = jConf.slackness;
 			newJ.stiffness = jConf.stiffness;
-			newJ.globalForce = jConf.globalForce;
+			newJ.globalForce = new Vector(jConf.globalForce.x, jConf.globalForce.y, jConf.globalForce.z);
 			skinData.allJoints[j.index] = newJ;
 
 			j.parent?.subs.remove(j);