783bb4e1cd
This reverts commit 5dba0b68f8.
Old code was supposed to use this function from draw, and we must never
poke depsgraph from drawing.