Skip to content

Fix msh2obj texcoord error formatting - #3510

Open
sylvesterkaczmarek wants to merge 1 commit into
google-deepmind:mainfrom
sylvesterkaczmarek:fix/msh2obj-texcoord-error
Open

Fix msh2obj texcoord error formatting#3510
sylvesterkaczmarek wants to merge 1 commit into
google-deepmind:mainfrom
sylvesterkaczmarek:fix/msh2obj-texcoord-error

Conversation

@sylvesterkaczmarek

Copy link
Copy Markdown

Summary

Fix the malformed texcoord-count diagnostic in mujoco.msh2obj.

The validation currently splits the message across two literals but only the first is an f-string. As a result, malformed legacy MSH files report the literal text 2*{ntexcoord} instead of the expected count.

This change adds the missing f-string prefix and regression coverage that declares five texcoords while serializing only one, verifying the error reports 2 != 2*5.

This revives the still-relevant fix from closed, unmerged PR #3302 against current main.

Validation

The final branch is based directly on current main and contains one focused commit changing only python/mujoco/msh2obj.py plus a regression test.

The MuJoCo Python test environment was not built here, so no local test execution is claimed.

@kevinzakka

Copy link
Copy Markdown
Collaborator

If you continue to spam the repo, you will be blocked @sylvesterkaczmarek

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