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

Worldspawn layers cant share textures with brush entities #154

Open
davideGiovannini opened this issue May 24, 2022 · 0 comments
Open

Worldspawn layers cant share textures with brush entities #154

davideGiovannini opened this issue May 24, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@davideGiovannini
Copy link
Contributor

I'm using Worldspawn layers to associate footstep sounds to different surfaces (textures).

I wanted to create a brush entity that acts like a secret door (same texture as the surrounding wall/floor)
but I discovered that Qodot either:

  • fails to create the brush entity (missing CollisionShape) if the worldspawn layer contains at least 1 brush.

  • crashes while building the map if the only brush using the texture is the BrushEntity with this error

res://addons/qodot/src/nodes/qodot_map.gd:851 - Invalid type in function 'add_surface_from_arrays' in base 'ArrayMesh'. Cannot convert argument 2 from Nil to Array.
qodot.gather_worldspawn_layer_surfaces(texture, brush_clip_texture, face_skip_texture)

I suspect the problem lies in this libqodot line

I think it should only consider the worldspawn classname while ignoring other brush entities.

But I'm not familiar enough with C and libqodot to investigate it more.

@DeerTears DeerTears added the bug Something isn't working label Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants