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

    DIRTYFLAGS_DATA is not updated on object

    SDK Help
    0
    3
    662
    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 12/01/2018 at 01:46, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R18 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      Hello.

      I have a polygon and a material applied to it.
      Once I delete the material, I receive a new DIRTYFLAGS_DATA bit since the texture tag doesn't point to any material. If I press Ctrl-Z, the material reappears in the texture tag but I don't get any DIRTYFLAGS_DATA update. So in this case I don't know if there is anything that has changed the object.

      What's the correct way to deal with this situation ? Check manually the tags one by one to notice any change or set the data bit dirty on the object once any of its materials is deleted ?

      Thank you for your time.

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

        On 15/01/2018 at 13:08, xxxxxxxx wrote:

        Hi Peterakos, thanks for writing us.

        With reference to your question, I've to say I was not able to reproduce the issue mentioned above in the sense that neither deleting the material nor undoing the material deletion I got any dirty counter change.
        I've actually monitored dirty counter belonging to the BaseObject, to the TextureTag and to the TextureTag BaseContainer without observing any dirty counter change deleting and undoing deletion.

        I actually suggest to run as you propose in the second instance of the last sentence basically setting the dirty bit on the BaseObject instance or on the TextureTag instance once the material is deleted.

        Best, Riccardo

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

          On 17/01/2018 at 06:38, xxxxxxxx wrote:

          Hello and thank you very much for your help !

          Once I delete a material, I set the data bit flag on the object that was using that material.
          This works correctly. The problem still remains that if I undo the deletion, I don't get any data or cache bit flag update.

          I just want to be sure if there is a way to get an update notification before I do it manually.

          Thank you for your time !

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