BG - Cannot Set Material
on an entity with multiple material slots
#6440
Labels
Set Material
on an entity with multiple material slots
#6440
Description
If an entity has more than 1 material slot (materials assigned to different faces), trying to perform a
Set Material
operation fails with the following error:set material: called on a non mesh
To Reproduce
Steps to reproduce the behavior:
.blend
Expected behavior
There needs to be a way to specify which material slot you want to affect (and perhaps an option for 'all') when using
Set Material
orGet Material
.Screenshots
This screenshot shows a graph that works on the lefthand object (because it has 1 material slot), whereas the righthand object throws an error due to having 2 material slots.
Looking at the ECS Debug reveals the problem. The object is split into two entities because of the material assignments.

It appears that the meshes are children of the parent entity which is apparently 'not a mesh'.
Hardware
The text was updated successfully, but these errors were encountered: