On 19/01/2017 at 07:51, xxxxxxxx wrote:
Cinema 4D Version: R18
Platform: Windows ; Mac ;
Language(s) : C++ ;
my plugin saves and loads objects. I try to avoid double materials so I compare the materials loaded with the ones already present in the document using BaseMaterial::Compare(BaseMaterial* mat).
But unfortunately that doesn't work. When reloading some objects just saved before, the materials are not recognized as equal.
Btw: even if I merge the saved file into the document using C4D's merge document, the material manager function "delete double materials" doesn't delete any material although they are definitely equal!
Any hint is very welcome.