Depsgraph: Fix crash removing object when CoW is enabled
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 20 Nov 2017 11:45:51 +0000 (12:45 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 21 Nov 2017 13:23:58 +0000 (14:23 +0100)
Not sure why that check was even done there. Maybe some residue of debug.

source/blender/depsgraph/intern/builder/deg_builder_nodes.cc

index a78a636d070d9c82488d71e8315e212f03b06719..ae6be5256dd0875bc60b480915fcc3710b60496b 100644 (file)
@@ -368,9 +368,6 @@ void DepsgraphNodeBuilder::begin_build() {
                 */
                cow_id_hash_ = BLI_ghash_ptr_new("Depsgraph id hash");
                foreach (IDDepsNode *id_node, graph_->id_nodes) {
-                       if (GS(id_node->id_orig->name) != ID_SCE) {
-                               continue;
-                       }
                        if (deg_copy_on_write_is_expanded(id_node->id_cow)) {
                                BLI_ghash_insert(cow_id_hash_,
                                                 id_node->id_orig,