Depsgraph/Python: callbacks and properties to detect datablock changes
[blender.git] / source / blender / editors / object / object_add.c
index 452e7e4857c5c3b2537d452bab59bfa388d738f3..7ff233fa6099620f6eb8aaa7f42fa2b7e1f5e19a 100644 (file)
@@ -863,6 +863,7 @@ void OBJECT_OT_group_instance_add(wmOperatorType *ot)
 /* note: now unlinks constraints as well */
 void ED_base_object_free_and_unlink(Main *bmain, Scene *scene, Base *base)
 {
+       DAG_id_type_tag(bmain, ID_OB);
        BLI_remlink(&scene->base, base);
        free_libblock_us(&bmain->object, base->object);
        if(scene->basact==base) scene->basact= NULL;