correct bone transform issue for save reload
@@ -96,6 +96,8 @@ public void newSkeleton(OnActivatedComponent event, EntityRef entity) {
EntityRef boneEntity = entityManager.create(loc);
skeleton.boneEntities.put(bone.getName(), boneEntity);
}
+ }
+
for (Bone bone : skeleton.mesh.getBones()) {
EntityRef boneEntity = skeleton.boneEntities.get(bone.getName());
EntityRef parent = (bone.getParent() != null) ? skeleton.boneEntities.get(bone.getParent().getName()) : entity;
@@ -114,7 +116,6 @@ public void newSkeleton(OnActivatedComponent event, EntityRef entity) {
}
entity.saveComponent(skeleton);
}
- }
@Override
public void update(float delta) {
@@ -322,7 +323,6 @@ public void renderOverlay() {
material.setMatrix4("projectionMatrix", worldRenderer.getActiveCamera().getProjectionMatrix());
Vector3f worldPos = new Vector3f();
-
FloatBuffer tempMatrixBuffer44 = BufferUtils.createFloatBuffer(16);
FloatBuffer tempMatrixBuffer33 = BufferUtils.createFloatBuffer(12);
