Commit: 059b878240a93a022eadce74b387ee737f8f1ab5
Author: Sergey Sharybin
Date:   Thu Nov 30 11:57:21 2017 +0100
Branches: master
https://developer.blender.org/rB059b878240a93a022eadce74b387ee737f8f1ab5

Depsgraph: More full explanation for previous commit

===================================================================

M       source/blender/depsgraph/DEG_depsgraph.h
M       source/blender/depsgraph/intern/depsgraph_tag.cc

===================================================================

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) {

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to