-
-
Notifications
You must be signed in to change notification settings - Fork 36.1k
VRMLLoader: Adding names of nodes. #21210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
For the itentification of the element the name is helpful. VRML: DEF ring Transform ->"ring" geometry.name=node.DEF; for buildIndexedFaceSetNode for buildGroupingNode
|
|
||
| } | ||
|
|
||
| object.name=node.DEF; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please note that DEF is optional so it can be undefined and thus Object3D.name. This is not good.
I suggest you change the lines to this pattern:
if ( node.DEF !== undefined ) object.name = node.DEF;There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes.
Is there anything else I need to do here - I'm not that familiar with github?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea is that you push an additional commit with the requested changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe he did the PR from the website?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@polygontwist If okay for you, I can do this change tomorrow. Otherwise I suggest you fork the repository, applying your changes in a new branch and then make a PR. So the typical contribution workflow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
Please change the file |
|
I think it makes sense to enhance |
|
Closing in favor of #21217. |
Description
For the itentification of the element the name is helpful.
VRML: DEF ring Transform ->"ring"
geometry.name=node.DEF;
for buildIndexedFaceSetNode
for buildGroupingNode