Depsgraph/Python: callbacks and properties to detect datablock changes
[blender.git] / source / blender / makesrna / intern / rna_object.c
index 137eebe6397abf138a430ab5f86e6ec984de5056..0fa63671951bc41f853e387ab5db619858c0afe9 100644 (file)
@@ -286,6 +286,8 @@ static void rna_Object_layer_update__internal(Main *bmain, Scene *scene, Base *b
        else {
                DAG_scene_sort(bmain, scene);
        }
+
+       DAG_id_type_tag(bmain, ID_OB);
 }
 
 static void rna_Object_layer_update(Main *bmain, Scene *scene, PointerRNA *ptr)