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

Use buildShape in objToMesh #658

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

arjxn-py
Copy link
Member

@arjxn-py arjxn-py commented Jan 1, 2025

Shall close #605

@arjxn-py arjxn-py added the bug PR that fixes a bug label Jan 1, 2025
Copy link
Contributor

github-actions bot commented Jan 1, 2025

Integration tests report: appsharing.space

Copy link
Contributor

github-actions bot commented Jan 1, 2025

Preview PR at appsharing.space

Comment on lines +1044 to +1056
if (mainMesh.material?.color) {
const originalMeshColor = new THREE.Color(
objColor || DEFAULT_MESH_COLOR
);
mainMesh.material.color = originalMeshColor;
mainMesh.userData.originalColor = originalMeshColor.clone();
}

edgesMeshes.forEach(edgeMesh => {
this._edgeMaterials.push(edgeMesh.material);
const edgeColor = new THREE.Color(objColor || DEFAULT_EDGE_COLOR);
edgeMesh.material.color = edgeColor;
});
Copy link
Member

Choose a reason for hiding this comment

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

It seems weird to me we have to do this?

Shouldn't this be done in buildShape?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug PR that fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

objToMesh should use the buildShape helper
2 participants