Python/Depsgraph: bpy.data.*.is_updated now detects add/remove of any datablock.
authorTom Edwards <contact@steamreview.org>
Wed, 15 Jan 2014 15:37:03 +0000 (16:37 +0100)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Wed, 15 Jan 2014 15:47:53 +0000 (16:47 +0100)
commit1f2136b329c1c457f8f2a77c26d0fdffc635e7a2
tree53d91bba6000bea9d9aaf683261936167ab6627b
parent8c444958fcba92135b22893ae5da53bc31e96eb6
Python/Depsgraph: bpy.data.*.is_updated now detects add/remove of any datablock.

Previously this only worked for some datablocks relevant to rendering, now it
can be used to detect if any type of datablock was added or removed (but not
yet to detect if it was modified, we need many more depsgraph tags for that).

Most of the changes are some function parameter changes, the important parts
are the DAG_id_type_tag calls.

Reviewed By: sergey, brecht

Differential Revision: https://developer.blender.org/D195
40 files changed:
source/blender/blenkernel/BKE_library.h
source/blender/blenkernel/intern/action.c
source/blender/blenkernel/intern/armature.c
source/blender/blenkernel/intern/blender.c
source/blender/blenkernel/intern/brush.c
source/blender/blenkernel/intern/camera.c
source/blender/blenkernel/intern/curve.c
source/blender/blenkernel/intern/font.c
source/blender/blenkernel/intern/gpencil.c
source/blender/blenkernel/intern/group.c
source/blender/blenkernel/intern/image.c
source/blender/blenkernel/intern/key.c
source/blender/blenkernel/intern/lamp.c
source/blender/blenkernel/intern/lattice.c
source/blender/blenkernel/intern/library.c
source/blender/blenkernel/intern/linestyle.c
source/blender/blenkernel/intern/mask.c
source/blender/blenkernel/intern/material.c
source/blender/blenkernel/intern/mball.c
source/blender/blenkernel/intern/mesh.c
source/blender/blenkernel/intern/movieclip.c
source/blender/blenkernel/intern/node.c
source/blender/blenkernel/intern/object.c
source/blender/blenkernel/intern/particle.c
source/blender/blenkernel/intern/scene.c
source/blender/blenkernel/intern/sound.c
source/blender/blenkernel/intern/speaker.c
source/blender/blenkernel/intern/text.c
source/blender/blenkernel/intern/texture.c
source/blender/blenkernel/intern/world.c
source/blender/blenloader/intern/readfile.c
source/blender/editors/object/object_add.c
source/blender/editors/object/object_shapekey.c
source/blender/editors/screen/screen_edit.c
source/blender/editors/space_node/node_group.c
source/blender/editors/space_text/text_ops.c
source/blender/makesrna/intern/rna_main_api.c
source/blender/windowmanager/intern/wm.c
source/blender/windowmanager/intern/wm_window.c
source/gameengine/Converter/BL_ShapeDeformer.cpp