Blender Git Commit Log

Git Commits -> Revision d09646a

Revision d09646a by Jeroen Bakker (master)
February 4, 2020, 06:46 (GMT)
Fix T73095: Edit Mode Overlay Linked Mesh

When using duplicate linked meshes, objects that are not in edit-mode will be drawn as
it is in edit mode, when another object with the same mesh is in edit mode.
This will not be the case when one of the objects are influenced by modifiers. The change
reflects more how it was done in Blender 2.79.

The current change introduces a draw manager method that checks in detail who is responsible
for the drawing (render engine or overlay engine). If the edit mesh is not the original or
the object that is drawn doesn't draw the original mesh the object will be drawn by the render
engine.

Known Limitation of this patch is that the rendering outside edit mode doesn't reflect the
latest changes until the user switches between object and edit mode. When there are no
modifiers in use, the updating is done immediately.

IMO this would be sufficient for blender 2.82, it also fixes parts of T72733.
The updating of the surface batches requires more development and is
post-poned for now.

Reviewed By: fclem, brecht

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

Commit Details:

Full Hash: d09646a40b1928308025d8ceb2c2d505651fc9a4
Parent Commit: fdb68e1
Lines Changed: +39, -11

6 Modified Paths:

/source/blender/draw/engines/overlay/overlay_engine.c (+1, -1) (Diff)
/source/blender/draw/engines/overlay/overlay_wireframe.c (+1, -1) (Diff)
/source/blender/draw/intern/draw_cache.c (+1, -1) (Diff)
/source/blender/draw/intern/draw_cache_impl_mesh.c (+1, -7) (Diff)
/source/blender/draw/intern/draw_manager.c (+34, -1) (Diff)
/source/blender/draw/intern/DRW_render.h (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021