Blender Git Loki

Git Commits -> Revision 5c17dbd

Revision 5c17dbd by Brecht Van Lommel (master)
May 30, 2018, 12:07 (GMT)
Fix missing Cycles 3D viewport updates when editing materials, lamps.

This introduces a new depsgraph API for getting updated datablocks,
rather than getting it from bpy.data.

* depsgraph.ids_updated gives a list of all datablocks in the depsgraph
which have been updated.
* depsgraph.id_type_updated('TYPE') is true if any datablock of the given
type has been added, removed or modified.

More API updates are coming to properly handle multiple depsgraphs and
finer update granularity, but this should make Cycles work again.

Commit Details:

Full Hash: 5c17dbd991d64257f99b179343b453bb60823d44
Parent Commit: 8ed7237
Lines Changed: +358, -366

20 Modified Paths:

/intern/cycles/blender/blender_session.cpp (+1, -1) (Diff)
/intern/cycles/blender/blender_shader.cpp (+30, -33) (Diff)
/intern/cycles/blender/blender_sync.cpp (+58, -74) (Diff)
/intern/cycles/blender/blender_sync.h (+1, -1) (Diff)
/intern/cycles/render/shader.cpp (+1, -0) (Diff)
/intern/cycles/render/shader.h (+1, -0) (Diff)
/source/blender/blenkernel/BKE_main.h (+0, -2) (Diff)
/source/blender/blenkernel/BKE_node.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/node.c (+7, -7) (Diff)
/source/blender/blenkernel/intern/scene.c (+5, -5) (Diff)
/source/blender/depsgraph/DEG_depsgraph.h (+1, -1) (Diff)
/source/blender/depsgraph/DEG_depsgraph_query.h (+18, -2) (Diff)
/source/blender/depsgraph/intern/depsgraph.h (+7, -0) (Diff)
/source/blender/depsgraph/intern/depsgraph_query.cc (+17, -2) (Diff)
/source/blender/depsgraph/intern/depsgraph_query_iter.cc (+72, -2) (Diff)
/source/blender/depsgraph/intern/depsgraph_tag.cc (+57, -39) (Diff)
/source/blender/depsgraph/intern/eval/deg_eval_flush.cc (+0, -21) (Diff)
/source/blender/makesrna/intern/rna_depsgraph.c (+75, -0) (Diff)
/source/blender/makesrna/intern/rna_ID.c (+5, -1) (Diff)
/source/blender/makesrna/intern/rna_main_api.c (+1, -174) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021