Skip to content

Commit

Permalink
Store FBXLoader original (not sanitized) node name in Object3D.userDa…
Browse files Browse the repository at this point in the history
…ta (#26641)

#26637

Co-authored-by: Mindaugas Janulis <Mindaugas.Janulis@cleverdist.com>
  • Loading branch information
janulis and JanulisCleverdist authored Aug 24, 2023
1 parent 52c8584 commit 6162a7e
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 6162a7e

Please sign in to comment.