diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-11-30 13:57:21 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-11-30 13:57:21 +0300 |
commit | 059b878240a93a022eadce74b387ee737f8f1ab5 (patch) | |
tree | a6427f7d18f660ed884fcda79a8d6eb0ac47fcdb /source | |
parent | 4b9b9dbf9348ea0a4983d1907dac1ace4c268517 (diff) |
Depsgraph: More full explanation for previous commit
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/depsgraph/DEG_depsgraph.h | 7 | ||||
-rw-r--r-- | source/blender/depsgraph/intern/depsgraph_tag.cc | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/source/blender/depsgraph/DEG_depsgraph.h b/source/blender/depsgraph/DEG_depsgraph.h index 59b10b95d49..9349b189e7b 100644 --- a/source/blender/depsgraph/DEG_depsgraph.h +++ b/source/blender/depsgraph/DEG_depsgraph.h @@ -120,10 +120,9 @@ void DEG_id_tag_update_ex(struct Main *bmain, struct ID *id, short flag); -/* Tag given ID type for update. - * - * Used by all sort of render engines to quickly check if - * IDs of a given type need to be checked for update. +/* Mark a particular datablock type as having changing. This does + * not cause any updates but is used by external render engines to detect if for + * example a datablock was removed. */ void DEG_id_type_tag(struct Main *bmain, short idtype); diff --git a/source/blender/depsgraph/intern/depsgraph_tag.cc b/source/blender/depsgraph/intern/depsgraph_tag.cc index 798af90f9ed..3d63e570eb8 100644 --- a/source/blender/depsgraph/intern/depsgraph_tag.cc +++ b/source/blender/depsgraph/intern/depsgraph_tag.cc @@ -251,7 +251,7 @@ void DEG_id_tag_update_ex(Main *bmain, ID *id, short flag) #endif } -/* Tag given ID type as updated. */ +/* Mark a particular datablock type as having changing. */ void DEG_id_type_tag(Main *bmain, short idtype) { if (idtype == ID_NT) { |