Skip to content
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

m-character sockets #105

Merged
merged 12 commits into from
Feb 7, 2024
Merged

m-character sockets #105

merged 12 commits into from
Feb 7, 2024

Conversation

TheCodeTherapy
Copy link
Contributor

This PR aims to offer further character customization to the 3d-web-experience through the usage of the m-character MML Character Descriptions tag with nested m-model tags including the socket attribute.

What kind of change does your PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Refactor
  • Tests
  • Other, please describe:

Does your PR fulfill the following requirements?

  • The title references the corresponding issue # (if relevant)

m-model-socket


private async setAttachments(parts: MMLCharacterDescriptionPart[]): Promise<void> {
parts.forEach(async (part) => {
if (part.socket?.socket && this.availableBones.has(part.socket.socket)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should handle the case where there isn't a valid bone by adding it to the root (which is effectively between the feet)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@MarcusLongmuir Nice catch! Fixed (I'm console.warning it though).

@TheCodeTherapy TheCodeTherapy force-pushed the feature/m-character-sockets branch from 3da6a43 to 073bd42 Compare February 6, 2024 19:34
@MarcusLongmuir MarcusLongmuir force-pushed the feature/m-character-sockets branch from 0c6679f to d89224a Compare February 7, 2024 15:30
@MarcusLongmuir MarcusLongmuir force-pushed the feature/m-character-sockets branch from d89224a to 5a7b737 Compare February 7, 2024 15:30
@MarcusLongmuir MarcusLongmuir merged commit 248ff6a into main Feb 7, 2024
5 checks passed
@MarcusLongmuir MarcusLongmuir deleted the feature/m-character-sockets branch February 7, 2024 15:44
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.

2 participants