Blender Git Commit Log

Git Commits -> Revision 88ba975

Revision 88ba975 by Sergey Sharybin (master)
October 11, 2019, 08:42 (GMT)
Depsgraph: Inform when update or tag happens during evaluation

It is not allowed to do tagging or updates while dependency graph is
in the middle of evaluation.

This is something what is simple to violate from python code. This
change adds some sanity checks.

The request to update view layer or dependency graph will raise an
exception in Python now, so it's easy for scripters to notice.

Tagging for update will do silent return unless running with debug
command line argument. This is because it's a bit tricky to know
which exact dependency graph corresponds to a context from which
an update tag was triggered.

Differential Revision: https://developer.blender.org/D6035

Commit Details:

Full Hash: 88ba97558f886c2b58c03d753036c5917a985fdb
Parent Commit: c9d6eb4
Lines Changed: +26, -6

3 Modified Paths:

/source/blender/depsgraph/intern/depsgraph_tag.cc (+6, -0) (Diff)
/source/blender/makesrna/intern/rna_depsgraph.c (+7, -2) (Diff)
/source/blender/makesrna/intern/rna_layer.c (+13, -4) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021