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

    Setting volume as dirty doesn't refresh in S22 or R23.

    Cinema 4D SDK
    s22 r23 c++
    2
    2
    265
    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.
    • kbarK
      kbar
      last edited by kbar

      I have a VolumeObject that is returned as a call to GetVirtualObjects.

      Inside GetVirtualObjects I load in a new vdb file from disk and call the following...

      _volumeObject->SetVolume(volume);

      _volumeObject->SetDirty(DIRTYFLAGS::ALL);

      This work for R20 and R21. But not in S22 or R23.

      Any ideas what might be wrong? Is there some other flag I need to set to make the viewport detect a change to the VolumeObject and make it update?

      How does the VolumeLoader update the viewport when it loads in a new VDB? I will need to do the same thing for my Object.

      What flags does the VolumeLoader set when it is registered? Perhaps I need to add a new flag?

      Thanks,
      Kent

      https://www.gamelogicdesign.com
      https://www.plugins4d.com

      1 Reply Last reply Reply Quote 0
      • M
        m_adam
        last edited by m_adam

        Hi @kbar I'm able to reproduce the issue and I've opened a new bug report about it.
        The only workaround is to return a new VolumeObject each time.

        Cheers,
        Maxime.

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

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