From 3fcf535d2e003ad939fa1f1c7aa4d5da1b38aef7 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Sun, 27 Dec 2015 11:53:50 +0100 Subject: Split id->flag in two, persistent flags and runtime tags. This is purely internal sanitizing/cleanup, no change in behavior is expected at all. This change was also needed because we were getting short on ID flags, and future enhancement of 'user_one' ID behavior requires two new ones. id->flag remains for persistent data (fakeuser only, so far!), this also allows us 100% backward & forward compatibility. New id->tag is used for most flags. Though written in .blend files, its content is cleared at read time. Note that .blend file version was bumped, so that we can clear runtimeflags from old .blends, important in case we add new persistent flags in future. Also, behavior of tags (either status ones, or whether they need to be cleared before/after use) has been added as comments to their declaration. Reviewers: sergey, campbellbarton Differential Revision: https://developer.blender.org/D1683 --- source/blender/collada/collada_utils.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/blender/collada/collada_utils.cpp') diff --git a/source/blender/collada/collada_utils.cpp b/source/blender/collada/collada_utils.cpp index e71078a0bae..efdfaadd3e2 100644 --- a/source/blender/collada/collada_utils.cpp +++ b/source/blender/collada/collada_utils.cpp @@ -198,7 +198,7 @@ Object *bc_get_assigned_armature(Object *ob) // returns NULL if no ancestor is selected // IMPORTANT: This function expects that // all exported objects have set: -// ob->id.flag & LIB_DOIT +// ob->id.tag & LIB_TAG_DOIT Object *bc_get_highest_selected_ancestor_or_self(LinkNode *export_set, Object *ob) { Object *ancestor = ob; @@ -237,17 +237,17 @@ bool bc_has_object_type(LinkNode *export_set, short obtype) int bc_is_marked(Object *ob) { - return ob && (ob->id.flag & LIB_DOIT); + return ob && (ob->id.tag & LIB_TAG_DOIT); } void bc_remove_mark(Object *ob) { - ob->id.flag &= ~LIB_DOIT; + ob->id.tag &= ~LIB_TAG_DOIT; } void bc_set_mark(Object *ob) { - ob->id.flag |= LIB_DOIT; + ob->id.tag |= LIB_TAG_DOIT; } // Use bubble sort algorithm for sorting the export set -- cgit v1.2.3