Skip to content

Commit

Permalink
Fix skin poses not loading
Browse files Browse the repository at this point in the history
  • Loading branch information
JannisX11 committed Jan 11, 2025
1 parent bf14873 commit 83d173e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/io/formats/skin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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) {
Expand Down

0 comments on commit 83d173e

Please sign in to comment.