Skip to content

Material parameter of type IntArray is empty after resetting it #1564

@theMinka

Description

@theMinka

I found a bug related to Material parameters of the type VarType.IntArray.

If you set the parameter for the first time, everything works fine.
However, if you change the parameter later on, it won't be set within the Shader.
The parameter get erased and is empty.

I noticed the bug inside the class Uniform.
When resetting the parameter, the buffer gets resized but not populated with the right array data.
I can provide a pull request to fix the problem.

Metadata

Metadata

Assignees

Labels

bugSomething that is supposed to work, but doesn't. More severe than a "defect".

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions