I still get index -1 when the material has not yet been assigned to an object but exists in the table, is this intentional?
The document had 7 materials (created from Matrix) that I deleted, then I add from code many other materials (that’s why the index 361 appears) but I don’t understand why the index 6 persists (it should be 360).
Index 6 still persists without materials, same result changing ignoreDeletedMaterials argument.
I need to solve this problem (today) somehow to assign my materials to objects, what other (working) method should I use?
EDIT: I have Version 6 SR18 (6.18.19266.14201, 09/23/2019)