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

const array of shader materials produces error #64067

Open
NateMarrocco opened this issue Aug 7, 2022 · 1 comment
Open

const array of shader materials produces error #64067

NateMarrocco opened this issue Aug 7, 2022 · 1 comment

Comments

@NateMarrocco
Copy link

Godot version

4.0 alpha

System information

Windows 10

Issue description

Creating an const array of shader materials produces this error

Line 13:Variant array is not compatible with an array of type "<unresolved type>".

changing the array to a var from const fixes the issue. Also changing the material from a shader material to a baseMaterial3D also fixes the error

Steps to reproduce

Load an array of materials from a .tres file

const_materials = [
	preload("../blocks/terrain_material.tres"),
	preload("../blocks/terrain_material_transparent.tres"),
	preload("../blocks/terrain_material_foliage.tres")
]

If those are shader materials they will give an error

Minimal reproduction project

No response

@Calinou
Copy link
Member

Calinou commented Aug 7, 2022

4.0 alpha

Which alpha are you using? There are 13 of them so far 🙂

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

No branches or pull requests

2 participants