From 83d173e01f6002ad9dc5889c838efccce31ed467 Mon Sep 17 00:00:00 2001 From: JannisX11 Date: Sat, 11 Jan 2025 22:10:09 +0100 Subject: [PATCH] Fix skin poses not loading --- js/io/formats/skin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/io/formats/skin.js b/js/io/formats/skin.js index 46d9ce38..1bf3edba 100644 --- a/js/io/formats/skin.js +++ b/js/io/formats/skin.js @@ -488,7 +488,7 @@ Interface.definePanels(function() { /*let old_angles = poses[this.pose]; for (let name in old_angles) { if (old_angles[name].offset) { - let group = Group.all.find(g => g.name == name); + let group = Group.all.find(g => g.name.replace(/\s/g, '') == name); if (group) { group.origin.V3_subtract(old_angles[name].offset); } @@ -503,7 +503,7 @@ Interface.definePanels(function() { Project.skin_pose = pose; let angles = poses[pose]; for (let name in angles) { - let group = Group.all.find(g => g.name == name); + let group = Group.all.find(g => g.name.replace(/\s/g, '') == name); if (group) { group.extend({rotation: angles[name].rotation || angles[name]}); if (angles[name].offset) {