Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-05-28 11:51:19 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-05-28 11:51:54 +0300
commiteb476c28163986a3158632bcc5f8579646f8607a (patch)
treed1c73082e13155a77403299ec08bc26996d625e1 /source/blender/depsgraph
parentf777983d5bf18daebb3f9940061f22a9641da759 (diff)
Depsgraph: Cleanup, multiple private functions are to be in anonymous namespace
Diffstat (limited to 'source/blender/depsgraph')
-rw-r--r--source/blender/depsgraph/intern/depsgraph_tag.cc12
1 files changed, 8 insertions, 4 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph_tag.cc b/source/blender/depsgraph/intern/depsgraph_tag.cc
index 4736de513e5..65d75fccad3 100644
--- a/source/blender/depsgraph/intern/depsgraph_tag.cc
+++ b/source/blender/depsgraph/intern/depsgraph_tag.cc
@@ -70,21 +70,23 @@ extern "C" {
*/
#define DEPSGRAPH_USE_LEGACY_TAGGING
+namespace {
+
/* Data-Based Tagging ------------------------------- */
-static void lib_id_recalc_tag(Main *bmain, ID *id)
+void lib_id_recalc_tag(Main *bmain, ID *id)
{
id->flag |= LIB_ID_RECALC;
DEG_id_type_tag(bmain, GS(id->name));
}
-static void lib_id_recalc_data_tag(Main *bmain, ID *id)
+void lib_id_recalc_data_tag(Main *bmain, ID *id)
{
id->flag |= LIB_ID_RECALC_DATA;
DEG_id_type_tag(bmain, GS(id->name));
}
-static void lib_id_recalc_tag_flag(Main *bmain, ID *id, int flag)
+void lib_id_recalc_tag_flag(Main *bmain, ID *id, int flag)
{
if (flag) {
/* This bit of code ensures legacy object->recalc flags
@@ -117,7 +119,7 @@ static void lib_id_recalc_tag_flag(Main *bmain, ID *id, int flag)
}
#ifdef DEPSGRAPH_USE_LEGACY_TAGGING
-static void depsgraph_legacy_handle_update_tag(Main *bmain, ID *id, short flag)
+void depsgraph_legacy_handle_update_tag(Main *bmain, ID *id, short flag)
{
if (flag) {
Object *object;
@@ -143,6 +145,8 @@ static void depsgraph_legacy_handle_update_tag(Main *bmain, ID *id, short flag)
}
#endif
+} /* namespace */
+
/* Tag all nodes in ID-block for update.
* This is a crude measure, but is most convenient for old code.
*/