Fix T67593: Crash when making link for instance collection
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 25 Jul 2019 08:02:00 +0000 (10:02 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 25 Jul 2019 08:02:00 +0000 (10:02 +0200)
source/blender/editors/object/object_relations.c

index e6637265fbc37dcd003d53b5744fd8b64dc4a731..ff31cbc45905127b55ebc0baf7b3e32e9258273d 100644 (file)
@@ -1582,6 +1582,7 @@ static int make_links_data_exec(bContext *C, wmOperator *op)
               id_us_plus(&ob_dst->instance_collection->id);
               ob_dst->transflag |= OB_DUPLICOLLECTION;
             }
+            DEG_id_tag_update(&ob_dst->id, ID_RECALC_COPY_ON_WRITE);
             break;
           case MAKE_LINKS_MODIFIERS:
             BKE_object_link_modifiers(scene, ob_dst, ob_src);