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

Fix "Convert to MeshLibrary" not respecting collision transforms #56907

Merged

Conversation

rburing
Copy link
Member

@rburing rburing commented Jan 18, 2022

When doing Scene → Convert To... → MeshLibrary... there is an option "Apply MeshInstance Transforms" that prevents the zeroing of the transform of each MeshInstance. Unfortunately this option did not respect the transform of the collision shapes of StaticBody children, so effectively the mesh would be moved away from its "left behind" collision shapes. Now the transforms are respected. Fixes #56172.

Before:

meshlibexport_before

After:

meshlibexport_after

cc @DeleteSystem32

@akien-mga akien-mga added bug cherrypick:3.4 cherrypick:3.x Considered for cherry-picking into a future 3.x release topic:3d topic:editor labels Jan 18, 2022
@akien-mga akien-mga added this to the 4.0 milestone Jan 18, 2022
@akien-mga akien-mga merged commit 26c4233 into godotengine:master Jan 19, 2022
@akien-mga
Copy link
Member

Thanks!

@rburing rburing deleted the convert_to_meshlibrary_apply_transforms branch January 19, 2022 13:02
@akien-mga
Copy link
Member

Cherry-picked for 3.5.

@akien-mga akien-mga removed the cherrypick:3.x Considered for cherry-picking into a future 3.x release label Jan 19, 2022
@akien-mga
Copy link
Member

Cherry-picked for 3.4.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GridMap not respecting collision transforms
3 participants