Skip to content

Commit

Permalink
Store FBXLoader original (not sanitized) node name in Object3D.userData
Browse files Browse the repository at this point in the history
  • Loading branch information
JanulisCleverdist committed Aug 24, 2023
1 parent 52c8584 commit ef7882e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/jsm/loaders/FBXLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,7 @@ class FBXTreeParser {
}

model.name = node.attrName ? PropertyBinding.sanitizeNodeName( node.attrName ) : '';
model.userData.originalName = node.attrName;

model.ID = id;

Expand Down Expand Up @@ -997,6 +998,7 @@ class FBXTreeParser {
// set name and id here - otherwise in cases where "subBone" is created it will not have a name / id

bone.name = name ? PropertyBinding.sanitizeNodeName( name ) : '';
bone.userData.originalName = name;
bone.ID = id;

skeleton.bones[ i ] = bone;
Expand Down

0 comments on commit ef7882e

Please sign in to comment.