Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    BaseMaterial::Compare() ?

    SDK Help
    0
    2
    266
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post