On 12/01/2018 at 01:46, xxxxxxxx wrote:
Cinema 4D Version: R18
Platform: Windows ;
Language(s) : C++ ;
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.
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.
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 !