Blender Git Loki

Git Commits -> Revision 6b93c55

October 18, 2019, 11:35 (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: 6b93c557a0cccce3895af1f70001f10f50cb401f
Parent Commit: 78852aa
Committed By: YimingWu
Lines Changed: +26, -6

Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18 MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2019