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:
Open attached .blend
Note the graph and setup of materials on the two plane objects
Run in Hubs / click on the hexagon on the floor.
Note the lefthand object changes while the righthand one throws an error.
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 or Get 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'.
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