codecat / godot-tbloader

TrenchBroom Loader for Godot 4. (Alternative to Qodot)
MIT License
232 stars 29 forks source link

Unable to create collider shape from mesh! #69

Closed mrjshzk closed 1 year ago

mrjshzk commented 1 year ago

Hello! When trying to build, it gives me this error 'Unable to create collider shape from mesh!' The plugin was working fine, i dont know why this happened.

imagem

codecat commented 1 year ago

Hmm this means that create_convex_shape or create_trimesh_shape on ArrayMesh is returning null. The documentation isn't very clear on the cases when this could happen. Do you know which meshes it is talking about? Perhaps it's an empty mesh?

mrjshzk commented 1 year ago

How can I get that information? On which mesh is return the error

codecat commented 1 year ago

Okay I just did some testing, and this might be related to #68 as well, are you on RC2? I'm able to reproduce this on Godot 4 RC2. It seems like the resource loader is failing to load any resources. I'm looking into it!

mrjshzk commented 1 year ago

Yes! I am on RC2

codecat commented 1 year ago

Looks to be caused by this change: https://github.com/godotengine/godot-cpp/commit/75af9003dc2b1583966ab91be6ce1687378860ae

codecat commented 1 year ago

The latest godot-cpp commit should fix this.

mrjshzk commented 1 year ago

Thank you! I'll wait for the next release as I'm too lazy to compile the engine :p