The threaded depsgraph update changes included a cleanup of the global
is_rendering flag, which was replaced by a general EvalContext being
passed to dupli functions.
Problem is that the global flag was true for viewport duplis before
(ugly hack), which was used as a check for generating dupli orco/UV from
mesh data layers. The new flag is stricter and only true for actual
renders, which disables these attributes and breaks the Cycles
Texture Coordinates and UVMap nodes.
The solution is to extend the simple for_render boolean to an enum:
- VIEWPORT: OpenGL viewport drawing (dupli tex coords omitted)
- PREVIEW: Viewport preview render (simplified modifiers)
- RENDER: Full render with all details and attributes
The patch seems to work correctly, but there are some smelly parts:
In particular modifiers seem to totally ignore the EvaluationContext!
Instead they generally execute without render params from the depsgraph
(BKE_object_handle_update_ex) and are built with render settings
explicitly. This area needs really careful review for the depsgraph
overhaul, but for now it works, somehow ...