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

Lightmap UV generation on rigged FBX files causes the mesh to disappear #81636

Closed
QbieShay opened this issue Sep 14, 2023 · 0 comments · Fixed by #81854
Closed

Lightmap UV generation on rigged FBX files causes the mesh to disappear #81636

QbieShay opened this issue Sep 14, 2023 · 0 comments · Fixed by #81854

Comments

@QbieShay
Copy link
Contributor

Godot version

v4.2.dev.custom_build [3ed4497]

System information

Fedora, RX 590

Issue description

When attempting to use the lightmap unwrap on a rigged fbx (doesn't repro with glb), there's an error in the console and the mesh disappears.

I created this mesh in blender as a reproduction case, but this issue was observed yesterday on minionsart's stream (https://www.twitch.tv/videos/1924312339, problems starting at 2h32 min roughly). She kindly sent me the model and I've managed to make a reproduction case that behave the same way (see MRP below)

Screenshot from 2023-09-14 09-59-39

Steps to reproduce

Download MRP

There's an fbx (test2.fbx). It's a cube rigged to a metarig.

Double click the FBX, you'll see a cube mesh
image

Hit reimport

Open the test_2.tscn, observe the cube is missing
image
with errors in the console

  scene/resources/importer_mesh.cpp:337 - Index bone_idx = 545021568 is out of bounds (static_cast<int>(bone_transform_vector.size()) = 159).
 servers/rendering_server.cpp:599 - Condition "array.size() != (int32_t)(p_vertex_array_len * bone_count)" is true. Returning: ERR_INVALID_PARAMETER
 Invalid array format for surface.
 scene/resources/mesh.cpp:1771 - Condition "err != OK" is true.
 scene/resources/mesh.cpp:1892 - Index p_idx = -1 is out of bounds (surfaces.size() = 0).
 scene/resources/mesh.cpp:1912 - Index p_idx = -1 is out of bounds (surfaces.size() = 0).
 Attempt to disconnect a nonexistent connection from 'test2:<Node3D#1917988171855>'. Signal: 'replacing_by', callable: 'EditorNode::set_edited_scene

Minimal reproduction project

minions-test.zip

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

Successfully merging a pull request may close this issue.

2 participants