Sent BaseObject* to BaseMaterial
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 22/06/2004 at 02:49, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.207
Platform: Windows ;
Language(s) : C++ ;---------
I have to sent an update message from my object to my material, so I just call Message with a defined id. But it also would be nice if I'd know from which object the message was sent. The background is that the material has to update some parameters of the object, I could also just parse all referenced objects by the matassign list and update them all, but that leads to bad performance. So, if the material would know which object did sent the message, it could update just this one.
Question: Is it save, to sent just an BaseObject* as data with the message? Or could it happen that this pointer will change within the time from sent to receive? -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 22/06/2004 at 22:19, xxxxxxxx wrote:
I think Message() is always synchronous (unless you do something silly, like calling it from a thread), i.e. you receive the message instantaneously like a function call. So you should be safe.