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
    • Recent
    • Tags
    • Users
    • Login

    op->Message(MSG_UPDATE)?

    Scheduled Pinned Locked Moved SDK Help
    1 Posts 0 Posters 114 Views
    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 Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 12/10/2009 at 13:36, xxxxxxxx wrote:

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

      ---------
      Howdy,

      Are there specific times when it's not safe to call op->Message(MSG_UPDATE)?

      I have a tag that does some calculations on a polygon object's points in the Execute() function and then at the end of the function, it calls op->Message(MSG_UPDATE). This seemed to be a cause of a crash when using the Bevel tool on a single selected edge of the polygonal object. If I comment out the op->Message(MSG_UPDATE) line, then it doesn't crash anymore.

      So far the Bevel tool is the only thing that I've found that causes a crash.

      In the SDK documentation it says:

      > Quote: __
      >
      > * * *
      >
      > MSG_UPDATE
      > Must be sent if the bounding box has to be recalculated. (Otherwise you can use MSG_CHANGE.)
      >
      >
      > * * *

      My assumption with that is that since the points were being altered by the tag, then MSG_UPDATE needed to be sent to the object. Is this correct?

      Adios,
      Cactus Dan

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