Delay depsgraph visibility update tagging until it is known that
graph relations are up to date, and until it is known that the graph
is actually needed to be evaluated.
Details
Diff Detail
- Repository
- rB Blender
Event Timeline
LGTM.
Honestly, I don't know what the visibility update is doing exactly yet. Can't see anything that is obviously wrong here though and the bug is fixed as well.
| source/blender/depsgraph/DEG_depsgraph.h | ||
|---|---|---|
| 116 | The do_time input is actually always false, so it probably could be removed (or can become a separate tag function). Anyway, that doesn't matter too much now. | |
| source/blender/depsgraph/intern/depsgraph.h | ||
| 111 | typo (by). | |
| source/blender/windowmanager/intern/wm_event_system.c | ||
| 383 | Isn't this what you did in this patch? Can you remove it now? | |
Addressed comments from Jacques.
I did leave the do_time argument, even though it is unused.
The only place where it is used is on file load. Maybe we need to do some special tag then. But to me it seems logical to keelp "do something for all depsgraph" and "do something for the given depsgraph" in sync from the arguments point of view.
Generally, I'm not a big fan having comments say where variables are set.
Neitehr am I, to be honest. Repharsed to indicated what the meaning is.
Isn't this what you did in this patch?
Yep, good catch!