Blender Git Loki
Git Commits -> Revision 723e129
Revision 723e129 by Brecht Van Lommel (master) November 2, 2011, 20:56 (GMT) |
Depsgraph/Python: callbacks and properties to detect datablock changes * Adds two new python handlers: scene_update_pre() and scene_update_post() These run before and after Blender does a scene update on making modifications to the scene. * Datablocks now have an is_updated property. This will be set to true in the above callbacks if the datablock was tagged to be updated. This works for the most common datablocks used for rendering: object, material, world, lamsp, texture, mesh, curve. * Datablock collections also have an is_updated property. If this is set, it means one datablock of this type was added, removed or modified. It's also useful as a quick check to avoid looping over all datablocks. * RenderEngine.view_update() can also check these properties, for interactive viewport rendering. http://wiki.blender.org/index.php/Dev:2.6/Source/Render/UpdateAPI |
Commit Details:
Full Hash: 723e129252f82cc81faa8834a68c79e4439ee8fa
SVN Revision: 41476
Parent Commit: ac52c79
Lines Changed: +313, -15
14 Modified Paths:
/source/blender/blenkernel/BKE_depsgraph.h (+6, -0) (Diff)
/source/blender/blenkernel/BKE_scene.h (+2, -0) (Diff)
/source/blender/blenkernel/intern/depsgraph.c (+110, -15) (Diff)
/source/blender/blenkernel/intern/scene.c (+14, -0) (Diff)
/source/blender/blenlib/BLI_callbacks.h (+2, -0) (Diff)
/source/blender/editors/object/object_add.c (+1, -0) (Diff)
/source/blender/editors/object/object_edit.c (+2, -0) (Diff)
/source/blender/makesdna/DNA_ID.h (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_ID.c (+10, -0) (Diff)
/source/blender/makesrna/intern/rna_main_api.c (+158, -0) (Diff)
/source/blender/makesrna/intern/rna_object.c (+2, -0) (Diff)
/source/blender/makesrna/intern/rna_scene_api.c (+1, -0) (Diff)
/source/blender/python/intern/bpy_app_handlers.c (+2, -0) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+2, -0) (Diff)
/source/blender/blenkernel/BKE_scene.h (+2, -0) (Diff)
/source/blender/blenkernel/intern/depsgraph.c (+110, -15) (Diff)
/source/blender/blenkernel/intern/scene.c (+14, -0) (Diff)
/source/blender/blenlib/BLI_callbacks.h (+2, -0) (Diff)
/source/blender/editors/object/object_add.c (+1, -0) (Diff)
/source/blender/editors/object/object_edit.c (+2, -0) (Diff)
/source/blender/makesdna/DNA_ID.h (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_ID.c (+10, -0) (Diff)
/source/blender/makesrna/intern/rna_main_api.c (+158, -0) (Diff)
/source/blender/makesrna/intern/rna_object.c (+2, -0) (Diff)
/source/blender/makesrna/intern/rna_scene_api.c (+1, -0) (Diff)
/source/blender/python/intern/bpy_app_handlers.c (+2, -0) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+2, -0) (Diff)