Cannot remove material

matcarbo838P8
Explorer
Explorer

Cannot remove material

matcarbo838P8
Explorer
Explorer

Hi, 

 

I have a FBX file with one node which has a mesh attribute, and this node points to a material. 

If I call the function node->GetMaterialCount() the result is 1 as expected.

Now I want to remove the connection between the node and the material. So I try two different ways: starting from

the node, by calling the function node->RemoveAllMaterials(), and starting from the material, by calling the function

mat->DisconnectAllDstObject(). In both ways, if I then call again the function node->GetMaterialCount() the result

is 0 as expected. 

However, when I open the modified file in Blender, the material is still connected to the node. Could you explain why does this happen?

 

Thank you for your time

0 Likes
Reply
109 Views
0 Replies
Replies (0)