Skip to content

Conversation

@ryans1224
Copy link

Related issue: #20843

Description

Issue: Duplicated node names are correctly appended with _i for use in the three.js animation system, however when assigning the name of these specifically, the unsanitized string is used.

Solve: Assign a new variable called sanitizedName so that it can be used over and over again in the for loop which loops over and appends _i to duplicated node names.

Copy link
Collaborator

@donmccurdy donmccurdy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@mrdoob mrdoob added this to the r124 milestone Dec 14, 2020
@mrdoob mrdoob changed the title gltf-loader: use sanitized name when creating unique node name for duplicated name #20843 GLTFLoader: Use sanitized name when creating unique node name for duplicated name Dec 14, 2020
@mrdoob mrdoob merged commit c088021 into mrdoob:dev Dec 14, 2020
@mrdoob
Copy link
Owner

mrdoob commented Dec 14, 2020

Thanks!

@ryans1224 ryans1224 deleted the gltf-loader-sanitize-duplicated-node-name branch December 15, 2020 08:14
drcmda added a commit to pmndrs/gltfjsx that referenced this pull request Dec 24, 2020
@John-D-a-i
Copy link

John-D-a-i commented Jan 27, 2021

Hello! The gltf model sets a component to be transparent, but the component set after the model is loaded is not transparent,

I found that the transparent property of material is false.

@donmccurdy
Copy link
Collaborator

@John-D-a-i Hi! We use GitHub issues to track confirmed bug reports and feature development. If you need help, please use the forum or stackoverflow.

Mercury21th000 added a commit to Mercury21th000/gltfjsx that referenced this pull request Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants