Plugin Cafe Homepage
Forum Home Forum Home > Plugin Cafe > SDK Help
  New Posts New Posts
  FAQ FAQ  Forum Search

DIRTYFLAGS_DATA is not updated on object

Author
Message
  Topic Search Topic Search
peterakos View Drop Down
Member
Member


Joined: 2015 Jul 13
Online Status: Offline
Posts: 349
Direct Link To This Post Topic: DIRTYFLAGS_DATA is not updated on object
    Posted: 2018 Jan 12 at 1:46am

User Information:

Cinema 4D Version:   R18 
Platform:   Windows  ;   
Language(s):     C++  ;   

---------

Hello.

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.
Back to Top
knickknack View Drop Down
Forum Moderator
Forum Moderator


Joined: 2016 Jul 01
Location: Italy
Online Status: Offline
Posts: 268
Direct Link To This Post Posted: 2018 Jan 15 at 1:08pm
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.

Best, Riccardo



Edited by knickknack - 2018 Jan 15 at 1:08pm
MAXON Computer GmbH
SDK Support Team
Back to Top
peterakos View Drop Down
Member
Member


Joined: 2015 Jul 13
Online Status: Offline
Posts: 349
Direct Link To This Post Posted: 2018 Jan 17 at 6:38am
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 !


Edited by peterakos - 2018 Jan 19 at 4:44am
Back to Top

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.61 [Free Express Edition]
Copyright ©2001-2009 Web Wiz

This page was generated in 0.094 seconds.