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

Compatibility with Trenchbroom/Qodot? #77

Closed
JouBqa opened this issue Feb 21, 2024 · 4 comments
Closed

Compatibility with Trenchbroom/Qodot? #77

JouBqa opened this issue Feb 21, 2024 · 4 comments

Comments

@JouBqa
Copy link

JouBqa commented Feb 21, 2024

When I step on ground made in Trenchbroom and brought into Godot with the Qodot plugin I get this error:

Invalid get index 'material' (on base: 'ArrayMesh').
image
image

@FailSpy
Copy link
Contributor

FailSpy commented Feb 21, 2024

You may want to pull the latest version of the main branch.
This should be solved by #70 , but looking at your screenshot there and your errors, you don't have the latest version of footstep_surface_detector.gd:

func _get_surface_material(collider : Node3D) -> Material:
var mesh_instance = null
var meshes = []
if collider is CSGShape3D:
if collider is CSGCombiner3D:
#composite mesh
if collider.material_override:
return collider.material_override

Do let me know how it functions for Trenchbroom/Qodot, as I'll be very keen to have it working with them!

@JouBqa
Copy link
Author

JouBqa commented Feb 21, 2024

Thanks! That fixed it

@FailSpy
Copy link
Contributor

FailSpy commented Feb 23, 2024

Looks like this can be closed after no updates? @Phazorknight

@Phazorknight
Copy link
Owner

Great, closing.

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

No branches or pull requests

3 participants