Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    Primitive's DIRTYFLAGS_CACHE in IRR

    SDK Help
    0
    3
    513
    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 22/02/2018 at 04:47, xxxxxxxx wrote:

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

      ---------
      Hello.

      I have a scene with a simple cube. I start IRR and I check the cube's DIRTYFLAGS_CACHE.
      Without making any modification to the scene, the cube's cache bit is constantly increased.
      If I convert the cube into polygon, the cube's cache remains the same.
      All of the above occurs without changing the cube.
      What causes the primitive cube's Cache bit to change ?

      Thank you for your time.

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

        On 22/02/2018 at 06:23, xxxxxxxx wrote:

        Hello.

        After some searching I found that the cache bit is increased because I call EventAdd(EVENT_FORCEREDRAW). If I don't call it though, the IRR in viewport doesn't update its image.

        If only polygons are used, the IRR is updated correctly and EVENT_FORCEREDRAW doesn't cause the cache bit to be increased. So how can I manually update IRR image without calling EventAdd ?

        Thank you.

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

          On 23/02/2018 at 08:20, xxxxxxxx wrote:

          Hi,

          I'm afraid you need to provide us with some more context. Is it Cinema 4D's IRR or some custom IRR? And where or in what context are you calling EventAdd(EVENT_FORCEREDRAW)?

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