Depsgraph: Fix residue of debug-only code
authorSergey Sharybin <sergey.vfx@gmail.com>
Fri, 18 Nov 2016 16:47:17 +0000 (17:47 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Fri, 18 Nov 2016 16:48:01 +0000 (17:48 +0100)
source/blender/depsgraph/intern/builder/deg_builder.cc

index 8939e4cc93a6e32d837fbaa911566f251a9c72e0..8a0bec5ed1d909d312d612d10e88597d73c959ec 100644 (file)
@@ -85,7 +85,7 @@ void deg_graph_build_finalize(Depsgraph *graph)
         */
        GHASH_FOREACH_BEGIN(IDDepsNode *, id_node, graph->id_hash)
        {
-               if (id_node->layers == 0 || 1) {
+               if (id_node->layers == 0) {
                        ID *id = id_node->id;
                        if (GS(id->name) == ID_OB) {
                                Object *object = (Object *)id;