godot
godot copied to clipboard
Shader array uniforms dont always update in editor correctly
Godot version
4.0 stable
System information
Forward+ renderer, rx470
Issue description
Creating a uniform array in shader and then changing its value in inspector will lock the variable type for some reason
Steps to reproduce
- Create a shader with something like uniform vec3[10] whatever;
- Add something to the array
- Change the array to something else, maybe vec4
- Uniform will still show as vec3 in editor
seems to happen with all datatypes though, ive currently got it stuck on int array somehow even though it is clearly a vec4 reloading shader/scene/engine or even changing the variable name doesnt fix it, annoying
Minimal reproduction project
trivial recreation
I just looked into the scene file text and I think the issue stems from the lack of a PackedVector4Array type. PackedVector3 exists and works fine for vec3 if I edit the scene file to that but I cant make an equivalent edit for vec4
Reopening as #76438 was reverted.