BaseMaterial::Compare() ?
-
On 19/01/2017 at 07:51, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R18
Platform: Windows ; Mac ;
Language(s) : C++ ;---------
Hi,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.
Thank you.
-
On 20/01/2017 at 01:21, xxxxxxxx wrote:
Hello Klaus,
we can reproduce the issue. I will contact development and file a bug report.